First of all, you need to config your nuxt.config.js
file with:
buildDir: 'dist', target: 'static', generate: { fallback: true, }
Then create a new custom command called deploy
in package.json
file:
"scripts": { ... "deploy": "nuxt build && nuxt generate" },
Finally, you need to set up the Netlify build settings like this:

Please remember to set the Base directory
to the nuxt.config.js
located folder.
Add new comment