Files
AetherForge/server/web/vite.config.ts
AetherForge e65753ce49
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
fix: second-wave bug fixes, security hardening, visual polish, UX improvements
Bug fixes:
- SRV-B1 through B5: server config, router, server_info, syscheck corrections
- BA-03 through BA-06: builder path and universal build cleanup (BLD-D1 through D3)
- Frontend WS race condition and useVisibleInterval hook fixed
- Drive-root path bug in PathForge resolved
- Upload error handling improved

Security:
- PathForge path traversal guard added
- Script injection escaping applied throughout

Visual (DV-01 through DV-15):
- Cyan design tokens and page headers standardised
- Dead CSS removed from Pages.css, PathTracerPage.css, wealth-deck.css
- SacredPageHeader deleted (replaced inline); sidebar version display fixed

UX:
- Emberwake request storm fixed (EmberwakePage.tsx)
- Help blurbs UH-01, UH-02, UH-06 added
- HelpTips wired into Crucible, Fleet (FleetGroupsStrip, FleetToolbar), Settings

Build:
- vite.config.ts: webroot auto-sync on build
- build_universal.go: universal build artifact cleanup
- PROBLEMS.md tracking updated
2026-06-06 17:08:15 -07:00

43 lines
882 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
resolve: {
dedupe: ['react', 'react-dom'],
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8989',
changeOrigin: true,
},
'/ws': {
target: 'ws://localhost:8989',
ws: true,
},
},
},
build: {
outDir: '../webroot',
emptyOutDir: true,
sourcemap: false,
rollupOptions: {
output: {
manualChunks(id) {
if (/node_modules[/\\](three|@react-three)/.test(id)) {
return 'three';
}
if (/node_modules[/\\]recharts/.test(id)) {
return 'recharts';
}
if (id.includes('node_modules')) {
return 'vendor';
}
},
},
},
},
})