Nuxt Configuration
2025-01-08
Config dev server IP addy and assign port number:
{
"name": "project-name",
"private": true,
"scripts": {
"dev": "nuxt dev --host 192.168.5.555 --port 5555",
...
},
...
Module order matters. This specific module order works as intended, without error or conflict:
modules: [
'@nuxt/ui',
'@nuxt/content',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@nuxt/image',
'@nuxtjs/mdc',
'@nuxt/icon',
],
telemetry: false, // F Telemetry
See Nuxt/Content/config.
CSS:
css: ['@/assets/styles/fleet.css', '@/assets/styles/ship.css'],
Color Mode:
colorMode: {
preference: 'dark', // $colorMode default
},
devtools: { enabled: true },
srcDir: 'app/',
database: { // sqlite (non-persistent)
default: {
connector: 'sqlite',
options: { name: 'db' }
}
},
nitro: {
prerender: {
crawlLinks: true,
failOnError: false,
},
},
compatibilityDate: '2024-09-28',
components: true,
})
Â