Forward ws on dev

This commit is contained in:
huchenlei
2024-06-12 21:15:43 -04:00
parent 4f093a147a
commit b4182040c9

13
vite.config.mts Normal file
View File

@@ -0,0 +1,13 @@
import { defineConfig } from 'vite';
export default defineConfig({
server: {
proxy: {
// Proxy websocket requests to the server
'/': {
target: 'ws://127.0.0.1:8188',
ws: true,
}
}
}
});