# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
For custom rules use tailwind.config.js
In nuxt.config.js insert the base url like the example
axios: {
baseURL: 'http://localhost'
}
export default {
modules: [
['nuxt-i18n', {
locales: [
{
code: 'en',
iso: 'en-US',
file: 'en.js',
dir: 'ltr'
}
]
}
]
}
For the name of the pages used for routing, insert the code as shown in the example inside export default, changing the path for each language configuredexport default {
nuxtI18n: {
paths: {
en: '/',
it: '/'
}
}
}
Use this file for global variables
The sitemap declaration in modules of nuxt.config.js should always be left last for its correct functioning
As for the generation of dynamic routes see the file modules/sitemapRouteGenerator.js
For module configuration, enter the chosen parameters in the nuxt.config.js file as shown in the example
export default {
sitemap: {
path: '/sitemap.xml',
hostname: 'http://yoursite.com/',
defaults: {
changefreq: 'monthly',
priority: 1.0,
lastmod: new Date()
},
gzip: true,
exclude: []
}
}
For insert custom CSS rules use the file ./static/css/custom.css
For detailed explanation on how things work, check out Nuxt.js docs.