You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a passthrough defined like so: this.passthrough('/translations/**');
When running on a url like so: http://localhost:9003/3638/tests/index.html
and the file translations/en-us.json
Mirage will fail to find the passthrough handler as it considers the "path" to be 3638/tests/translations/en-us.json instead of translations/en-us.json
The text was updated successfully, but these errors were encountered:
A quick search found no issues open/closed that I think match your request. Host typically ends at the first /. I would suspect that you might have to determine this yourself, then adjust the namespace when defining the routes.
I have been extracting pretender to allow it to be optionally replaced with MSW https://mswjs.io/. I wonder if that would have the same problem.
Given a passthrough defined like so:
this.passthrough('/translations/**');
When running on a url like so:
http://localhost:9003/3638/tests/index.html
and the file
translations/en-us.json
Mirage will fail to find the passthrough handler as it considers the "path" to be
3638/tests/translations/en-us.json
instead oftranslations/en-us.json
The text was updated successfully, but these errors were encountered: