Skip to content

NVR with realtime local object detection for IP cameras

Proxy websockets in devcontainers (#8886)

Josh Hawkinsa4f5ad3a94fd
diff --git a/web/vite.config.ts b/web/vite.config.ts
index 930c0f36ea..ee33d491a1 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -19,7 +19,16 @@ export default defineConfig({
},
'/exports': {
target: 'http://localhost:5000'
- }
+ },
+ '/ws': {
+ target: 'ws://localhost:5000',
+ ws: true,
+ },
+ '/live': {
+ target: 'ws://localhost:5000',
+ changeOrigin: true,
+ ws: true,
+ },
}
},
plugins: [
@@ -43,4 +52,4 @@ export default defineConfig({
restoreMocks: true,
globals: true,
},
-});
+});
\ No newline at end of file