Web frontend

This commit is contained in:
2026-08-27 12:32:20 +02:00
parent d44c24ec97
commit edb6e5e027
97 changed files with 9535 additions and 195 deletions

16
web/vite.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// In development the frontend runs on 5173 and the backend on 8081; everything under
// /api - including the websocket upgrade - is proxied there, so the browser sees one
// origin and there is no CORS to configure on either side.
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": { target: "http://127.0.0.1:8081", changeOrigin: true, ws: true },
},
},
build: { outDir: "dist", emptyOutDir: true },
});