How to deploy Nuxt on Netlify
01/10/2021 · by Feb Dao
![Profile picture of Feb Dao(very handsome)]()
Deploying to Netlify is a option for getting a statically generated Nuxt.js site online quickly.
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:
