-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
Next.js Server Rendered Pages not Working / Static Pages Working #8975
Comments
Can you please provide a fully reproducing demo? We need to see your application code as well! |
@naregkhodanian this maybe traefik fault, because they relased new version lately and not backward compatibility 1.x, so might be checkout your traefik version |
I believe I'm seeing the same issue. When it's trying to resolve pages with dynamic routing it 404s during prefetch or when you click them. Then it falls back to a hard refresh. Happens both in development mode and in production. Live demo: https://dynamic-pages-example-k9jroax4n.now.sh |
@wouterds in your case it's this: https://github.com/zeit/next.js#dynamic-routing
|
Regarding the initial issue: Please follow the issue template. https://github.com/zeit/next.js/issues/new/choose https://github.com/zeit/next.js/issues/new?template=8.Question_about_next.md
|
@timneutkens Should I make a new issue or post here: https://spectrum.chat/next-js Also thank you everyone for the help I will try a few options suggested above such as maybe running a new version of traefik. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Question about Next.js
Hello everyone,
I have a Digital Ocean server running with docker containers for my website setup. Everything works perfectly except Server Rendered pages. For some reason, in my local development, it works completely fine but once I put it into docker it gives me a 404 and tries to load from the static folder where it does not exist.
server.js
Dockerfile
docker-compose.yaml
Getting 502 errors on dynamic pages
The text was updated successfully, but these errors were encountered: