17 lines
403 B
TypeScript
17 lines
403 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
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,
|
|
},
|
|
},
|
|
},
|
|
})
|