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,
},
- Netlify: Deploys -> Deploy settings -> Build settings
Base directory:
Build command: next build && next export
Publish directory: out
- Site settings -> Build & deploy -> Environment -> Environment variables
Key: NETLIFY_NEXT_PLUGIN_SKIP
Value: true