404 when migrating from Snowpack 2 "proxy" to Snowpack 3 "routes" #3625
Unanswered
Lavariet
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried switching from our Snowpack 2.18.4 to the current Snowpack 3.8.3 and I'm having trouble getting the proxy to work correctly.
For reference I'm using React and React-Router. If I navigate to a route using the UI everything works. If I press F5 / reload the page on the old snowpack version, the Page just refreshes, with the routes config I end up on a HTTP code 404.
My only guess as to why this happens is, in a Axios-Wrapper we wrote, we're defining a "base-path" like and this might not get picked up by routes.
our old config had the following proxy setting:
I tried replacing it with
Any help is appreciated
Beta Was this translation helpful? Give feedback.
All reactions