53 lines
1.1 KiB
TypeScript
53 lines
1.1 KiB
TypeScript
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-04-03',
|
|
devtools: { enabled: false },
|
|
css: ['~/assets/css/main.css'],
|
|
modules: [
|
|
'@nuxt/ui'
|
|
],
|
|
ui: {
|
|
theme: {
|
|
colors: {
|
|
primary: 'red',
|
|
gray: 'slate'
|
|
}
|
|
}
|
|
},
|
|
runtimeConfig: {
|
|
jwtSecret: process.env.JWT_SECRET || 'your-secret-key',
|
|
adminPassword: process.env.ADMIN_PASSWORD || 'admin123'
|
|
},
|
|
nitro: {
|
|
experimental: {
|
|
wasm: true
|
|
},
|
|
externals: {
|
|
inline: ['better-sqlite3']
|
|
},
|
|
moduleSideEffects: ['better-sqlite3'],
|
|
alias: {
|
|
'tailwindcss/colors': 'tailwindcss/colors.js'
|
|
}
|
|
},
|
|
app: {
|
|
head: {
|
|
link: [
|
|
{ rel: 'icon', type: 'image/png', href: '/logos/favicon.png' },
|
|
{
|
|
rel: 'preconnect',
|
|
href: 'https://fonts.googleapis.com'
|
|
},
|
|
{
|
|
rel: 'preconnect',
|
|
href: 'https://fonts.gstatic.com',
|
|
crossorigin: ''
|
|
},
|
|
{
|
|
rel: 'stylesheet',
|
|
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
})
|