From 391f2c8acbf19242b0076861feb4586de67e38c8 Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Thu, 9 Apr 2026 12:32:14 +0000 Subject: [PATCH 1/2] Initial plan From b1d3f856016cbde91746f0ce48cd74c9413c6734 Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Thu, 9 Apr 2026 12:40:11 +0000 Subject: [PATCH 2/2] fix: guard vercel insights to vercel env only Co-authored-by: Alessandro100 <18631060+Alessandro100@users.noreply.github.com> --- src/app/[locale]/layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 && ( <>