Netlify CMS & Next.js Deploy Error Fixed. (failed due to an error in @netlify/plugin-nextjs plugin)

Published: 10 October 2022
on channel: VeeWeb Code
1,639
11

.
THE ERROR:
Site has not yet been deployed
failed due to an error in @netlify/plugin-nextjs plugin
Deploy summary
Plugin "@netlify/plugin-nextjs" failed
Error: The directory "/opt/build/repo/dist" does not contain a Next.js production build. Perhaps the build command was not run, or you specified the wrong publish directory.
However, a '.next' directory was found with a production build.
Consider changing your 'publish' directory to '.next'
If you are using "next export" then you should set the environment variable NETLIFY_NEXT_PLUGIN_SKIP to "true".
In "onBuild" event in "@netlify/plugin-nextjs" from Netlify app


Social: 👇
Twitter:  / veewebcode  
Facebook:  / veewebcode  
Instagram:  / veewebcode  
Twitch:   / veewebcode  
Discord:  / discord  
Youtube:   / veewebcode  
Github: https://github.com/0xMALVEE/
Discord:  / discord  
Patreon:   / veewebcode  

Support Me At Patreon:
  / veewebcode  

Join our growing community for new videos every Random Day
BUSINESS INQUIRIES
Please contact - [email protected]


Watch video Netlify CMS & Next.js Deploy Error Fixed. (failed due to an error in @netlify/plugin-nextjs plugin) online without registration, duration hours minute second in high quality. This video was added by user VeeWeb Code 10 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,63 once and liked it 1 people.