fix code style

This commit is contained in:
2026-07-12 11:17:54 +02:00
parent d477ba0863
commit ca5df49e0c
+25 -25
View File
@@ -1,37 +1,37 @@
import "@/App.css";
import {
getWebInstrumentations,
initializeFaro,
ReactIntegration,
ConsoleInstrumentation,
WebVitalsInstrumentation,
ConsoleInstrumentation,
getWebInstrumentations,
initializeFaro,
ReactIntegration,
WebVitalsInstrumentation,
} from "@grafana/faro-react";
import Dashboard from "@/components/Dashboard/Dashboard";
function App() {
const isProduction = import.meta.env.PROD;
const isProduction = import.meta.env.PROD;
if (window.location.hostname === "localhost" && isProduction) {
initializeFaro({
url: "http://alloy:8027/collect",
app: {
name: "monitor-im-flur",
version: "0.0.1",
environment: "production",
},
instrumentations: [
...getWebInstrumentations({
captureConsole: true,
}),
new ConsoleInstrumentation(),
new WebVitalsInstrumentation(),
new ReactIntegration(),
],
});
}
if (window.location.hostname === "localhost" && isProduction) {
initializeFaro({
url: "http://alloy:8027/collect",
app: {
name: "monitor-im-flur",
version: "0.0.1",
environment: "production",
},
instrumentations: [
...getWebInstrumentations({
captureConsole: true,
}),
new ConsoleInstrumentation(),
new WebVitalsInstrumentation(),
new ReactIntegration(),
],
});
}
return <Dashboard />;
return <Dashboard />;
}
export default App;