Skip to content

opennextjs/opennextjs-netlify

Repository files navigation

Next.js on Netlify Build Plugin

Essential Next.js Build Plugin (beta)

⚠️ This is the beta version of the Essential Next.js plugin. For the stable version, see Essential Next.js plugin v3 ⚠️

Installing the beta

  • Install the module:
npm install -D @netlify/plugin-nextjs@beta
  • Change the publish directory to .next and add the plugin to netlify.toml if not already installed:
[build]
publish = ".next"

[[plugins]]
package = "@netlify/plugin-nextjs"

If you previously set target: "serverless" in your next.config.js this is no longer needed and can be removed.