diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..79671bb --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +REACT_APP_ENDPOINT_URL= diff --git a/package.json b/package.json index 09612d9..6b1cab5 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, - "proxy": "http://192.168.0.172:8888", "scripts": { "start": "react-scripts start", "build": "react-scripts build", diff --git a/src/App.js b/src/App.js index 4f2dfc9..9d67690 100644 --- a/src/App.js +++ b/src/App.js @@ -18,10 +18,9 @@ import Mermaid from "./Mermaid"; const ResetMonitorEndpointButton = WithEndpoint(Button); const SyncEndpointToggleSwitch = WithEndpoint(ToggleSwitch); function BabyD() { - const periodicEndpoint = useAdapterEndpoint("detector", "", 1000); - const staticEndpoint = useAdapterEndpoint("detector"); - const periodicSlowEndpoint = useAdapterEndpoint("detector", "", 5000); - //const periodicDetectorEndpoint = useAdapterEndpoint("detector", "http://localhost:3000", 200); + const periodicEndpoint = useAdapterEndpoint("detector", process.env.REACT_APP_ENDPOINT_URL, 1000); + const staticEndpoint = useAdapterEndpoint("detector", process.env.REACT_APP_ENDPOINT_URL); + const periodicSlowEndpoint = useAdapterEndpoint("detector", process.env.REACT_APP_ENDPOINT_URL, 5000); const [loki_connection_ok, set_loki_connection_ok] = useState(true); const [asic_enabled, set_asic_enabled] = useState(false);