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/4] 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/4] 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 && ( <> From 70c5b3f9187158c2e94d16108f8b2930b6734af8 Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Fri, 1 May 2026 12:22:06 +0000 Subject: [PATCH 3/4] revert: remove vercel insights components from layout Co-authored-by: Alessandro100 <18631060+Alessandro100@users.noreply.github.com> --- src/app/[locale]/layout.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 48d20ae..092c7fe 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -55,9 +55,6 @@ 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. @@ -118,7 +115,7 @@ export default async function LocaleLayout({ }} > {children} - {vercelInsightsEnabled && ( + {process.env.VERCEL_ENV === 'production' && ( <> From c54576d552ef639d0863eaafca7039614ad2fe03 Mon Sep 17 00:00:00 2001 From: Alessandro Kreslin Date: Fri, 1 May 2026 09:06:27 -0400 Subject: [PATCH 4/4] removed vercel speed insights --- package.json | 1 - src/app/[locale]/layout.tsx | 2 -- yarn.lock | 5 ----- 3 files changed, 8 deletions(-) diff --git a/package.json b/package.json index 828082b..d3fded1 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "@types/lodash": "^4.17.20", "@types/react-map-gl": "^6.1.7", "@vercel/analytics": "^1.6.1", - "@vercel/speed-insights": "^1.3.1", "axios": "^1.7.2", "countries-list": "^3.1.1", "country-flag-emoji-polyfill": "^0.1.8", diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 092c7fe..d7789ec 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -1,4 +1,3 @@ -import { SpeedInsights } from '@vercel/speed-insights/next'; import { Analytics } from '@vercel/analytics/next'; import { GoogleAnalytics } from '@next/third-parties/google'; import ThemeRegistry from '../registry'; @@ -117,7 +116,6 @@ export default async function LocaleLayout({ {children} {process.env.VERCEL_ENV === 'production' && ( <> - )} diff --git a/yarn.lock b/yarn.lock index 2e1c9eb..66eea7a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4451,11 +4451,6 @@ resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.6.1.tgz#b4e16daf445cf6cd365a91e43d86e9e5b3428ddc" integrity sha512-oH9He/bEM+6oKlv3chWuOOcp8Y6fo6/PSro8hEkgCW3pu9/OiCXiUpRUogDh3Fs3LH2sosDrx8CxeOLBEE+afg== -"@vercel/speed-insights@^1.3.1": - version "1.3.1" - resolved "https://registry.yarnpkg.com/@vercel/speed-insights/-/speed-insights-1.3.1.tgz#df8baeba65a1aaaf11adbd09d3fe7edc6b2a493a" - integrity sha512-PbEr7FrMkUrGYvlcLHGkXdCkxnylCWePx7lPxxq36DNdfo9mcUjLOmqOyPDHAOgnfqgGGdmE3XI9L/4+5fr+vQ== - "@vis.gl/react-mapbox@8.1.0": version "8.1.0" resolved "https://registry.yarnpkg.com/@vis.gl/react-mapbox/-/react-mapbox-8.1.0.tgz#ce08f2942ddd92784ae1cedb35dccad61c613ab0"