From 9f00828b80ef08f5c0aba792e1ce07e6fcca5923 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 9 Apr 2026 12:24:33 +0200 Subject: [PATCH] fix: restore glitchtip nesting and fix type errors --- lib/config.ts | 4 +++- lib/env.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/config.ts b/lib/config.ts index 77ca2cd..ab8d801 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -36,12 +36,14 @@ function createConfig() { }, errors: { + glitchtip: { // Use NEXT_PUBLIC_SENTRY_DSN if available (required for browser-side SDK) - dsn: env.NEXT_PUBLIC_SENTRY_DSN || (env as any).SENTRY_DSN, + dsn: env.NEXT_PUBLIC_SENTRY_DSN || env.SENTRY_DSN, // The proxied origin used in the frontend proxyPath: "/errors", enabled: Boolean(env.SENTRY_DSN), }, + }, cache: { enabled: false, diff --git a/lib/env.ts b/lib/env.ts index c0658c3..92df8a1 100644 --- a/lib/env.ts +++ b/lib/env.ts @@ -18,6 +18,7 @@ const envExtension = { // Project specific overrides or additions AUTH_COOKIE_NAME: z.string().default("mb_gatekeeper_session"), NEXT_PUBLIC_SENTRY_DSN: z.string().optional(), + SENTRY_DSN: z.string().optional(), }; /**