checky check so faro will only send data on the server
This commit is contained in:
+14
-10
@@ -8,16 +8,20 @@ import {
|
|||||||
import Dashboard from "@/components/Dashboard/Dashboard";
|
import Dashboard from "@/components/Dashboard/Dashboard";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
initializeFaro({
|
if (window.location.hostname === "localhost") {
|
||||||
url: "http://localhost:12347/collect", // Points to your local Alloy container
|
initializeFaro({
|
||||||
app: {
|
url: "http://localhost:12347/collect",
|
||||||
name: "monitor-im-flur",
|
app: {
|
||||||
version: "1.0.0",
|
name: "monitor-im-flur",
|
||||||
environment: "development",
|
version: "0.0.1",
|
||||||
},
|
environment: "development",
|
||||||
instrumentations: [...getWebInstrumentations(), new ReactIntegration()],
|
},
|
||||||
});
|
instrumentations: [
|
||||||
|
...getWebInstrumentations(),
|
||||||
|
new ReactIntegration(),
|
||||||
|
],
|
||||||
|
});
|
||||||
|
}
|
||||||
return <Dashboard />;
|
return <Dashboard />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user