feat: 事件推送由 SSE 切换到 WebSocket (#386)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-07-11 00:14:20 +08:00
committed by GitHub
parent cc25749445
commit dd23d1db58
21 changed files with 783 additions and 307 deletions

View File

@@ -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'
},