only init faro when env is production

This commit is contained in:
2026-07-11 17:48:54 +02:00
parent 1a207185ff
commit 018bd6d87d
3 changed files with 19 additions and 4 deletions
+7 -3
View File
@@ -8,13 +8,17 @@ import {
import Dashboard from "@/components/Dashboard/Dashboard";
function App() {
if (window.location.hostname === "localhost") {
const isProduction = import.meta.env.PROD;
if (isProduction) {
console.debug("Initializing Faro environment...");
initializeFaro({
url: "http://localhost:12347/collect",
app: {
name: "monitor-im-flur",
version: "0.0.1",
environment: "development",
version: import.meta.env.VITE_APP_VERSION || "0.0.1",
environment: "production",
},
instrumentations: [
...getWebInstrumentations(),