This repository has been archived on 2026-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
nyx/vite.config.ts
Nico 599c5132a5 feat(theme): per-tenant dark/bright themes, brand decoupled from mode
- TenantConfig gains themes: { dark, bright } — CSS data-theme names per mode
- tenants/loop42/theme.css: dark + bright CSS blocks (moved out of base.css)
- tenants/dev/theme.css: titan-bright CSS block (titan dark stays as :root)
- useTheme: stores 'dark'|'bright' in nyx_mode, toggles via tenant themes config
- AppToolbar: single sun/moon toggle replaces multi-button brand switcher
- AppSidebar, HomeView, router: brand name/icon from tenant.name directly, not theme
- themeSwitcher feature flag removed (replaced by universal toggle)
- Fix: local K3s auth mismatch — VITE_AUTH_DISABLED removed from .env.local;
  infra/k8s/local/runtime.yaml sets AUTH_ENABLED=false to match test namespace

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 00:37:13 +02:00

36 lines
738 B
TypeScript

/// <reference types="vitest/config" />
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
const buildId = Date.now().toString(36);
export default defineConfig({
define: {
__BUILD__: JSON.stringify(buildId),
},
plugins: [tailwindcss(), vue()],
test: {
environment: 'happy-dom',
include: ['src/**/*.test.ts'],
globals: true,
},
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/ws': {
target: 'ws://localhost:30800',
ws: true,
changeOrigin: true,
},
'/api': {
target: 'http://localhost:30800',
changeOrigin: true,
},
},
},
build: {
outDir: 'dist',
},
})