Support Forums

Failed to deploy Next.js 12

Next.js 11 works fine :sleepy:

Hi @tia,

Could you try adding https://www.npmjs.com/package/@webassemblyjs/helper-module-context to your package.json?

Failed again.

Now it says it requires something else… it’s never going to end.

My site deploys perfectly on Vercel.

Could you share the site name?

Hi, I solved the issue by adding netlify.toml and including the build plugin, according to GitHub - cassidoo/next-netlify-starter: A one-click starter project for Next and Netlify

Thank you!

But the build time isn’t getting significantly shorter.

Nextjs on Netlify needs a lot of function bundling and that takes time. So, extended build times would probably be expected behaviour.