Files
Wizard/wizard_website/vite.config.ts
T
2026-09-27 09:56:28 +02:00

19 lines
500 B
TypeScript

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
// Relative asset URLs, so the app works under any path prefix (e.g. /website/).
base: './',
server: {
// Forward API requests (including the websocket) to a locally running game server.
proxy: {
'/api': {
target: process.env.WIZARD_SERVER_URL ?? 'http://localhost:8000',
ws: true,
},
},
},
})