fix: disable SSR + add app.config for Nuxt UI colors

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>
This commit is contained in:
Alejandro Martinez
2026-04-07 16:39:20 +02:00
parent e1cf90ed04
commit 3bf17d5323
2 changed files with 9 additions and 0 deletions

8
app/app.config.ts Normal file
View File

@@ -0,0 +1,8 @@
export default defineAppConfig({
ui: {
colors: {
primary: 'indigo',
neutral: 'zinc',
},
},
})

View File

@@ -1,6 +1,7 @@
export default defineNuxtConfig({
compatibilityDate: '2025-01-01',
future: { compatibilityVersion: 4 },
ssr: false,
modules: ['@nuxt/ui'],
runtimeConfig: {