Next.js static page is blank


I know this has been a recurring topic on this site, but I’ve fixed everything I could : Rewrites from /* to index.html, checked code and checked on local npm run dev command.

Locally, everything works fine and my page is rendered as expected. link :

But when I deploy my site, the page is blank, and there is nothing in the console to indicate what the problem might be.

Could anyone help please ? I’ve been stuck for 2 weeks.

Thanks in advance !


There will always be differences between environments: development mode/Local, production mode/Render, etc. These differences need to be considered and configured as required for your own app in each environment.

The URL you shared shows “Not found”. “Not Found” on a Static Site means we were unable to find an “index.html” in the “Publish Directory” (service “Settings” page) you specified. Or, that service has been deleted.

Maybe trying building the static files locally. Check that they are generated where and how you expect, to confirm that your Publish Directory is correct. Trying opening them locally (not npm run dev) to see if they are still blank.