Plugin "@netlify/plugin-nextjs" failed
Error: The directory "out" does not contain a Next.js production build. Perhaps the build command was not run, or you specified the wrong publish directory. Your publish directory is set to "out", but in most cases it should be ".next". If you are using "next export" then the Essential Next.js plugin should be removed. See https://ntl.fyi/remove-plugin for details.
In "onBuild" event in "@netlify/plugin-nextjs" from Netlify app at Object.checkNextSiteHasBuilt (/.netlify/plugins/node_modules/@netlify/plugin-nextjs/lib/helpers/verification.js:67:16) at onBuild (/.netlify/plugins/node_modules/@netlify/plugin-nextjs/lib/index.js:24:24)
I’ve deployed a couple other Next.js sites the same way without issue. Any idea whats wrong all of a sudden?
The plugin is now at v4 (see release notes) and has more support for core Next.js functionality (such as ISR) and as such the change in publish directory was required.
out is still used, by only if using next export to build a static site.