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