mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Fix
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user