From 3bf17d5323c96ce843b55fd61ad2383a6037209a Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Tue, 7 Apr 2026 16:39:20 +0200 Subject: [PATCH] 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) --- app/app.config.ts | 8 ++++++++ nuxt.config.ts | 1 + 2 files changed, 9 insertions(+) create mode 100644 app/app.config.ts diff --git a/app/app.config.ts b/app/app.config.ts new file mode 100644 index 0000000..9c56634 --- /dev/null +++ b/app/app.config.ts @@ -0,0 +1,8 @@ +export default defineAppConfig({ + ui: { + colors: { + primary: 'indigo', + neutral: 'zinc', + }, + }, +}) diff --git a/nuxt.config.ts b/nuxt.config.ts index 20e3292..66c71fc 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,6 +1,7 @@ export default defineNuxtConfig({ compatibilityDate: '2025-01-01', future: { compatibilityVersion: 4 }, + ssr: false, modules: ['@nuxt/ui'], runtimeConfig: {