Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Any Next.js page reloading redirects to home page
Hello! I am working with Next.js applications now. In the dev version on my localhost, I can reload any page and the page stays on the same URL. But when I deploy it to a domain in plesk panel integrated with Digitalocean CentOS server, then the application’s pages do not stay the same after reloading, it always goes back to the homepage. I can not hit any page by specific page Url, it also redirects to the home page application. Is there any solution from the Digitalocean server configuration? I tried so many ways as trailingSlash enabled and so many things but it does not work. On the other hand, when I deploy it to the Vercel platform, it works as expected way. I want to stay on the Digitalocean server. Are there any solutions to this? Thanks in advance.