diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx
index 092c7fe..48d20ae 100644
--- a/src/app/[locale]/layout.tsx
+++ b/src/app/[locale]/layout.tsx
@@ -55,6 +55,9 @@ const ibmPlexMono = IBM_Plex_Mono({
variable: '--font-ibm-plex-mono',
});
+const vercelInsightsEnabled =
+ process.env.VERCEL === '1' && process.env.VERCEL_ENV === 'production';
+
/**
* Generate static params for all locales.
* This enables static generation for locale-prefixed routes.
@@ -115,7 +118,7 @@ export default async function LocaleLayout({
}}
>
{children}
- {process.env.VERCEL_ENV === 'production' && (
+ {vercelInsightsEnabled && (
<>