Nextjs runtime v5 error build

Hi,
We noticed that today builds started failing due to new Nextjs Runtime. We have a static export of the site and it seems the flag in the ENV variables is not working. Our site is https://sahcaven.netlify.app/. We use 14.1.0 version of Nextjs. What can we do to disable nextjs runtime?
Thanks in advance!

solved it by following this docs: Next.js 13.5+ on Netlify | Netlify Docs

1 Like

Hi @sahcaven,

Thanks for reaching out and welcome to Netlify’s Support Forums!

Sorry about the issue with building while using Netlify/Next.js runtime v5.

Could you try using the suggest build commands mentioned here:

When you link a repository for a Next.js project, Netlify provides a suggested build command and publish directory: next build and .next .

To see if your site builds properly with the Netlify/Next.js runtime v5.

If you do decide to stay with Netlify Next.js Runtime v4.41.3, you’ll want to downgrade Next.js to a version below 13.5. v4.41.3 is meant for version less than 13.5, while version 5 of the runtime is meant for Next.js version above 13.5 (such as 14.1.0).