Voeg Sentry-foutregistratie toe als gekozen logging-bestemming

Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
2026-07-25 13:15:18 +02:00
co-authored by Junie
parent 7e53d4d7e2
commit 7680feb29f
12 changed files with 190 additions and 13 deletions
+6
View File
@@ -1,10 +1,16 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { RouterProvider } from '@tanstack/react-router';
import * as Sentry from '@sentry/react';
import './fonts';
import './index.css';
import { router } from './router';
const sentryDsn = import.meta.env.VITE_SENTRY_DSN;
if (sentryDsn) {
Sentry.init({ dsn: sentryDsn });
}
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error('Root element "#root" not found in index.html');