only init faro when env is production
This commit is contained in:
+7
-3
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user