Why does handler not catch URL during CI deployment? #2517
Unanswered
alaws-USGS
asked this question in
Q&A
Replies: 1 comment
-
|
Hi! There's 13 closed issues related to RTK Query and 3 discussions. Have you checked the suggestions in those? Please do, if you haven't. I remember that you have to configure the base URL or something for RTK Query correctly. There might also be issues related to this in the RTK Query repository on GitHub so please look into them, too. It's unlikely to be a bug in MSW. If the request isn't intercepted, then your app performs a different request than you expect. You should follow the Debugging runbook and see how far you can get. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am using
mswwith Vitest and RTK Query. During local development, I am able to use a ternary operator to supply an absolute path for my RTK queries andmswcatches my GET's just fine at the '/modelspath. However, when I deploy using a CI pipeline, my base URL changes andmswno longer catches the/modelspath. Instead, I now I have explicitly state that path i.e.https://path.to.API/models`. Is there something I am missing in setting up my handlers?Handlers
API query
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions