This commit is contained in:
2026-10-23 19:23:03 +02:00
parent 8c8240de63
commit 19428550ca
90 changed files with 6912 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// Dev server forwards /hub to a locally running game server (dotnet run).
const devServer = process.env.DEV_SERVER_URL ?? 'http://localhost:5080';
export default defineConfig({
plugins: [react()],
build: {
// Hashed bundles go to /static; /assets holds the exchangeable graphics from public/.
assetsDir: 'static',
},
css: {
modules: {
localsConvention: 'camelCaseOnly',
},
},
server: {
proxy: {
'/hub': { target: devServer, ws: true, changeOrigin: true },
},
},
});