feat: enable sentry for the frontend

This commit is contained in:
swve 2024-08-29 19:57:24 +02:00
parent 0fc6713ec8
commit a5a87d7866
11 changed files with 2641 additions and 737 deletions

View file

@ -0,0 +1,9 @@
export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
await import('./sentry.server.config');
}
if (process.env.NEXT_RUNTIME === 'edge') {
await import('./sentry.edge.config');
}
}