so I have a nextjs app that I deployed in render. but when I go to my deployed app it just says “not found”. I found a fix by rewriting “/” to “/server/app/index.html” however. my app has multiple pages so for example what if someone goes to “/login” or “/register” or maybe “/post?id=5” that wont work? so is there any fix for this issue?
What about changing the redirect from /
to /*
The problem you are experiencing here is that pages that are navigated to “inside” the application, ie from clicking around, work fine, but URLs accessed directly like /login
are received by the web server, and it doesn’t know how to respond, so the requests need to be directed to the index.html. This more commonly arises when putting an application into production and isn’t a Render-specific scenario
Regards,
Hey John!
I fixed it by chosing to deploy my app using the “web serivce” option instead of static site
Thank you for reaching out and trying to help me <3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.