Netlify plugin that allows you to deploy dynamic NextJS path statically
Example site: demo-netlify-plugin-next-dynamic.netlify.app
Build logs: Netlify CI
You have to build your NextJS with your next build
command first, then export it by next export
After that, add plugin into your Netlify configuration (docs) or just add it from Netlify UI (docs)
[[plugins]]
package = "netlify-plugin-next-dynamic"
Normally, you can use it with zero-configuration if .next
and your exported directory are in the same place. If not don't worry, we got you covered!
Path that target to your custom .next
directory
[plugins.inputs]
nextDir = "apps/dashboard/.next"