feat: 事件推送由 SSE 切换到 WebSocket (#386)
This commit is contained in:
@@ -6,6 +6,11 @@ export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api/ws': {
|
||||
target: 'ws://localhost:12345',
|
||||
ws: true,
|
||||
rewriteWsOrigin: true
|
||||
},
|
||||
'/api': 'http://localhost:12345',
|
||||
'/image-proxy': 'http://localhost:12345'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user