I wanted to start with a template (Next.js Blog Template), but the deploy fails from the beginning ("Deploy failed due to an error in @netlify/plugin-nextjs plugin.")

I don’t know where the problem is, I guessed a template will be deployed without any issues. But well, something is wrong. Thanks for helping <3

The Sitename is deft-buttercream-214558 and the failed deploy url: Netlify App

Build Log:

Build settings:

Build settings

Base directory: Not set
Build command: npm run export
Publish directory: dist
Build status: Active

Hello @leoniefelberd, kindly set your build command to next build && next export
And publish directory to out

If you want to use npm make sure the script section is similar to the build and publish directory above.

For more information about build settings regarding your framework, kindly visit the link below.

Let me know the outcome.

Thanks.

1 Like