chore: dev setup

This commit is contained in:
2026-02-24 16:22:08 +01:00
parent 6864903cff
commit 31685a458b
5 changed files with 21 additions and 4 deletions

View File

@@ -1,10 +1,11 @@
import * as Sentry from "@sentry/nextjs";
const dsn = process.env.SENTRY_DSN;
const isProd = process.env.NODE_ENV === "production";
Sentry.init({
dsn,
enabled: Boolean(dsn),
enabled: isProd && Boolean(dsn),
tracesSampleRate: 1,
debug: false,