fix: build, typecheck, eslint

This commit is contained in:
2026-02-07 10:03:31 +01:00
parent 56b27b26bc
commit b60ba17770
4 changed files with 6 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ export default async function LocaleLayout({
<CMSConnectivityNotice />
{/* Sends pageviews for client-side navigations */}
<AnalyticsProvider websiteId={config.analytics.umami.websiteId} />
<AnalyticsProvider />
</NextIntlClientProvider>
</body>
</html>

View File

@@ -35,11 +35,11 @@ function createConfig() {
errors: {
glitchtip: {
// Use SENTRY_DSN for both server and client (proxied)
dsn: env.SENTRY_DSN,
// The proxied origin used in the frontend
proxyPath: '/errors',
enabled: Boolean(env.SENTRY_DSN),
// On the client, we always enable it (it uses the tunnel / proxy defined in sentry.client.config.ts)
// On the server, we only enable it if the DSN is provided.
enabled: typeof window !== 'undefined' || Boolean(env.SENTRY_DSN),
},
},

View File

@@ -30,8 +30,7 @@ let singleton: AppServices | undefined;
*
* The services are configured based on environment variables:
* - `UMAMI_WEBSITE_ID` - Enables Umami analytics
* - `NEXT_PUBLIC_SENTRY_DSN` - Enables client-side error reporting
* - `SENTRY_DSN` - Enables server-side error reporting
* - `SENTRY_DSN` - Enables error reporting (server-side direct, client-side via relay)
*
* @returns {AppServices} The application services singleton
*

File diff suppressed because one or more lines are too long