{
"scripts": {
...
},
"husky": {
"hooks": {
"pre-commit": "cross-env PRE_COMMIT=true lint-staged"
}
}
}
Static generated / pre rendered means pre render the application once during build and serve it as a Single Page Application
Faster
Fully Dynamic
Hydration process
SEO Benefits
generate: {
fallback: true,
exclude: [/booking/]
}
generate: {
routes: function () {
return axios.get(‘https://my-api/blog')
.then((res) => {
return res.data.map((post) => {
return '/blog/' + post.slug
})
})
}
}
Will crawl all your <nuxt-link> tags and auto generate your dynamic pages at build time
https://github.com/nuxt/nuxtjs.org/tree/master/modules/crawler
Nuxt-crawler can help you to achieve that
locales: [
{
code: 'en',
iso: 'en-US',
name: 'English',
file: 'en.js',
},
],
lazy: true,
langDir: 'i18n/',