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 "@/App.css";
import { import {
getWebInstrumentations, ConsoleInstrumentation,
initializeFaro, getWebInstrumentations,
ReactIntegration, initializeFaro,
ConsoleInstrumentation, ReactIntegration,
WebVitalsInstrumentation, WebVitalsInstrumentation,
} from "@grafana/faro-react"; } from "@grafana/faro-react";
import Dashboard from "@/components/Dashboard/Dashboard"; import Dashboard from "@/components/Dashboard/Dashboard";
function App() { function App() {
const isProduction = import.meta.env.PROD; const isProduction = import.meta.env.PROD;
if (window.location.hostname === "localhost" && isProduction) { if (window.location.hostname === "localhost" && isProduction) {
initializeFaro({ initializeFaro({
url: "http://alloy:8027/collect", url: "http://alloy:8027/collect",
app: { app: {
name: "monitor-im-flur", name: "monitor-im-flur",
version: "0.0.1", version: "0.0.1",
environment: "production", environment: "production",
}, },
instrumentations: [ instrumentations: [
...getWebInstrumentations({ ...getWebInstrumentations({
captureConsole: true, captureConsole: true,
}), }),
new ConsoleInstrumentation(), new ConsoleInstrumentation(),
new WebVitalsInstrumentation(), new WebVitalsInstrumentation(),
new ReactIntegration(), new ReactIntegration(),
], ],
}); });
} }
return <Dashboard />; return <Dashboard />;
} }
export default App; export default App;