- Install the module:
npm install -D @netlify/plugin-nextjs@beta
- Change the
publish
directory to.next
and add the plugin tonetlify.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.
Please share any thoughts, feedback or questions about the beta in our discussion.