SSR causes 'Cannot read properties of null' with Nuxt UI v3 color mode. Since this is an internal app, SPA mode works fine. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
407 B
TypeScript
19 lines
407 B
TypeScript
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-01-01',
|
|
future: { compatibilityVersion: 4 },
|
|
ssr: false,
|
|
modules: ['@nuxt/ui'],
|
|
|
|
runtimeConfig: {
|
|
adminPassword: process.env.ADMIN_PASSWORD || 'admin',
|
|
dbPath: process.env.DB_PATH || './data/brainstorm.db',
|
|
},
|
|
|
|
nitro: {
|
|
experimental: { tasks: true },
|
|
rollupConfig: {
|
|
external: ['better-sqlite3'],
|
|
},
|
|
},
|
|
})
|