- Install the module:
npm install -D @netlify/plugin-nextjs@beta- Change the
publishdirectory to.nextand add the plugin tonetlify.tomlif not already installed:
[build]
publish = ".next"
[[plugins]]
package = "@netlify/plugin-nextjs"If you previously set target: "serverless", node_bundler or external_node_modules in your next.config.js these are longer needed and can be removed.
Please share any thoughts, feedback or questions about the beta in our discussion.
