0

I'm using nextjs, and when i'm testing locally, with 'npm run dev' I acess my route directly like localhost:3000/settings/account, and It works nicelly, but when I 'npm run build' and 'npm run export' and try to test in the server side with serve -s out, I try to acess directly /settings/account and it redirects me to /home, why?

Why it works locally, but when i export to server-side, it doesn't work anymore? Any one knows where the problem can be? Is it on the build, or any code issue in client-side? (because it works on client-side testing)

Direct route is not working on server-side, it redirects me to /home

0 Answers0