first prototype
This commit is contained in:
@@ -4,4 +4,13 @@ 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user