This commit is contained in:
jeanotx32
2026-08-11 00:26:56 +02:00
commit 6f11b72cbb
43 changed files with 7175 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
const backend = process.env.BACKEND_URL ?? 'http://127.0.0.1:8080';
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': { target: backend, changeOrigin: true },
'/ws': { target: backend, ws: true, changeOrigin: true },
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
});