Skip to content

NVR with realtime local object detection for IP cameras

optional env var for easier development (#11426)

Josh Hawkins171a142adbe9
diff --git a/web/vite.config.ts b/web/vite.config.ts
index 6a2c05fb8f..cb1a580bf3 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -4,7 +4,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import monacoEditorPlugin from "vite-plugin-monaco-editor";
-const proxyHost = "localhost:5000";
+const proxyHost = process.env.PROXY_HOST || "localhost:5000";
// https://vitejs.dev/config/
export default defineConfig({