Next js static site deployment

So I followed the instructions to deploy a next.js static site but I’m getting this error:
“Error: Could not find a production build in the ‘/opt/render/project/src/build’ directory. Try building your app with ‘next build’ before starting the static export. next-export-no-build-id | Next.js

Anyone knows how to solve it?

Are you using the Next 13?

Hi Nuno,

Could you let me know what your Build Command and Publish directory settings are, or share your render.yaml?

I’d also suggest forking/copying the example repo directly, confirming you can deploy that as a static site, then using it as a reference to help understand what might be happening in your static site.



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.