This commit is contained in:
2026-04-27 14:52:15 +03:00
Unverified
parent 66a1060685
commit c7f4eb8a48
5 changed files with 88 additions and 26 deletions
+3 -1
View File
@@ -77,6 +77,7 @@ export default defineConfig({
"@fromchat/protocol": path.resolve(__dirname, "./packages/fromchat-protocol/src/index.ts")
}
},
// Dev entry on 8301: browser uses same-origin `/api` (HTTP + WebSocket, e.g. `/api/chat/ws`).
server: {
host: '0.0.0.0',
port: 8301,
@@ -86,7 +87,8 @@ export default defineConfig({
target: _backendProxy,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
ws: true
ws: true,
proxyTimeout: 0,
}
},
allowedHosts: [