client: proxy websocket when running deno task dev
This commit is contained in:
parent
d78db0448c
commit
baa289f91c
3 changed files with 21 additions and 1 deletions
13
client/vite.config.js
Normal file
13
client/vite.config.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
'/server': {
|
||||
target: 'ws://127.0.0.1:5174',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue