2022-09-23

Next.js deploy settings on Netlify for this blog

package.json

"scripts": {
  "build": "next build && next export",
}

next.config.js

eslint: {
  ignoreDuringBuilds: true,
},
  1. Netlify: Deploys -> Deploy settings -> Build settings
    Base directory:
    Build command: next build && next export
    Publish directory: out
  1. Site settings -> Build & deploy -> Environment -> Environment variables
    Key: NETLIFY_NEXT_PLUGIN_SKIP
    Value: true