Netlify deploy is a blank page


This site is a next.js site. It is live, but the entire site is blank. Going through the console, I have the following errors:
These errors, however, do not appear when I deploy the site through git, only when I use the cli.

I came across this post: Site is live, but sill blank screen (react app) - #117 by hrishikesh, but none of the answers there seem to solve my issue (or really even show up).

How do I make my site appear after a deploy from the cli?

Update: this problem only occurs if I run netlify build then netlify deploy, but not if I run netlify deploy --build. I do not know why this is the case, but I can live with it. I would still like to know what is happening as this should not be the case.

This is expected. The configured redirects are removed and the default netlify.toml is restored after the process completes. Thus, when you do netlify deploy after running netlify build, the redirects don’t exist.