New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run build under nginx routing not working. #144
Comments
Yeah, I have the same issue. Did you manage to solve this? |
no response here, so refactored using page.js. |
If I understand it correctly If you want your SPA to work properly you must config your nginx to redirect all calls (with path intact) to I don't know how to configure nginx but for Apache my working
Or use hash routing. |
Hi @sinistra! @MrSrsen is right on the money. You must either configure nginx to serve your |
any example only nginx? |
I have approx 6 routes in a spa app.
svelte-routing works perfectly with
npm run dev
.if I build with
npm run build
and then run the app inside an nginx docker container, routes do not work.eg. 'http://localhost:8080/products' and press enter ... "404 Not Found ... nginx/1.17.7"
does anyone have any ideas on where to look for the problem?
The text was updated successfully, but these errors were encountered: