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 db10ab93fd Production-ready sidebar, toolbar, auth, and routing for loop42.de
Slim sidebar (Home, nyx, Impressum, Datenschutz, Sign-in/User), global
AppToolbar for system features, /agents→/nyx rename, agent auto-select,
OIDC user name extraction from id_token, theme-consistent content pages,
removed DevView and old system panel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 16:14:24 +02:00

33 lines
676 B
TypeScript

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()],
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/ws': {
target: 'wss://assay.loop42.de',
ws: true,
rewriteWsOrigin: true,
secure: true,
changeOrigin: true,
},
'/api': {
target: 'https://assay.loop42.de',
changeOrigin: true,
secure: true,
},
},
},
build: {
outDir: 'dist',
},
})