Files
AetherForge/server/web/vite.config.ts
drjones 20eb5a3ba4 Add dashboard 3D fleet map, matrix stream overlay, and PWA support.
Integrates React Three Fiber topology view and a live matrix stream modal on the dashboard. Adds vite-plugin-pwa with AetherForge manifest and three.js dependencies.
2026-05-28 22:28:26 -07:00

52 lines
1.0 KiB
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: true
},
manifest: {
name: 'AetherForge Command Deck',
short_name: 'AetherForge',
theme_color: '#0d0d12',
background_color: '#000000',
display: 'standalone',
icons: [
{
src: '/vite.svg',
sizes: '192x192',
type: 'image/svg+xml'
},
{
src: '/vite.svg',
sizes: '512x512',
type: 'image/svg+xml'
}
]
}
})
],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8989',
changeOrigin: true,
},
'/ws': {
target: 'ws://localhost:8989',
ws: true,
},
},
},
build: {
outDir: 'dist',
sourcemap: false,
},
})