All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
- Add dark mode toggle button in top nav - Add darkMode store with localStorage persistence - Enable Tailwind class-based dark mode - Import dark.css global overrides - Remove inline dark: Tailwind classes (handled by global CSS) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
63 lines
1.4 KiB
TypeScript
63 lines
1.4 KiB
TypeScript
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-07-15',
|
|
devtools: {enabled: false},
|
|
ssr: false,
|
|
css: ['~/assets/css/dark.css'],
|
|
app: {
|
|
baseURL: process.env.NODE_ENV === 'production'
|
|
? (process.env.NUXT_PUBLIC_APP_BASE || '/')
|
|
: '/'
|
|
},
|
|
extends: ['@malio/layer-ui'],
|
|
modules: [
|
|
'@nuxtjs/tailwindcss',
|
|
'@pinia/nuxt',
|
|
'nuxt-toast',
|
|
'@nuxtjs/i18n',
|
|
'@nuxt/icon',
|
|
],
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: process.env.NUXT_PUBLIC_API_BASE
|
|
}
|
|
},
|
|
devServer: {
|
|
port: 3002,
|
|
},
|
|
components: [
|
|
{path: '~/components', pathPrefix: false},
|
|
],
|
|
vite: {
|
|
server: {
|
|
allowedHosts: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://nginx',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
toast: {
|
|
settings: {
|
|
timeout: 2000,
|
|
closeOnClick: true,
|
|
progressBar: false
|
|
}
|
|
},
|
|
i18n: {
|
|
strategy: 'no_prefix',
|
|
defaultLocale: 'fr',
|
|
langDir: 'locales',
|
|
locales: [
|
|
{code: 'fr', file: 'fr.json', name: 'Français'}
|
|
],
|
|
},
|
|
typescript: {
|
|
strict: true
|
|
},
|
|
build: {
|
|
transpile: ['@vuepic/vue-datepicker']
|
|
}
|
|
})
|