This guide is to assist next-on-netlify
users in their migration to Netlify's Essential Next.js Build Plugin.
Please visit this issue to ask questions about migrating and/or the deprecation of next-on-netlify
.
- Uninstall
next-on-netlify
. - Remove the
"postbuild": "next-on-netlify"
script from yourpackage.json
. - Get the Essential Next.js plugin.
- For new Next.js sites on Netlify, the plugin will be automatically installed. You can opt out of the plugin by visiting the Plugins tab for your site in the Netlify UI.
- For existing sites on Netlify, follow the manual installation instructions in the plugin README, which explains UI-based and file-based installation.
Deploy a new Next.js site to Netlify! Your site will automatically build with the plugin. You can opt out of the plugin by visiting the Plugins tab for your site in the Netlify UI.