Hi Everyone,
I recently deployed my Next.js app on Render, but when I visit the site, it only shows a black screen. The app runs perfectly in development mode, but after deployment, no UI elements appear.
I have tried:
Checking the Render logs, but I don’t see any errors.
Inspecting the browser console, which shows Failed to load resource
or ReferenceError: window is not defined
.
Making sure all environment variables and API endpoints are correctly set up.
Running a build locally next build && next start, and it works fine.
Has anyone else faced this issue? Could this be due to SSR/CSR rendering issues, static file misconfigurations, or missing dependencies? Any troubleshooting suggestions would be appreciated!