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.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!