Changed from NextJs to React - build still looking for Next

Site: zen-visvesvaraya-01067e

I had a NextJS site. I deleted all those files and started fresh with React. Everything works great locally, but it will deploy. Netlify is still looking for NextJS. I can’t find anywhere in the settings where I need to make a change.

Plugin "@netlify/plugin-nextjs" failed

Error: The directory "/opt/build/repo/build" does not contain a Next.js production build. Perhaps the build command was not run, or you specified the wrong publish directory.
In most cases it should be set to ".next", unless you have chosen a custom "distDir" in your Next config.
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 at checkNextSiteHasBuilt (/.netlify/plugins/node_modules/@netlify/plugin-nextjs/lib/helpers/verification.js:72:16) at onBuild (/.netlify/plugins/node_modules/@netlify/plugin-nextjs/lib/index.js:40:50)

How do I tell Netlify that this site does not use NextJS anymore??

Could you uninstall the plugin from here and try: Netlify App?

1 Like