diff --git a/.changeset/shaggy-chefs-build.md b/.changeset/shaggy-chefs-build.md new file mode 100644 index 000000000..de2b2caab --- /dev/null +++ b/.changeset/shaggy-chefs-build.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vercel': patch +--- + +Revert change to environment variable diff --git a/packages/integrations/vercel/src/analytics.ts b/packages/integrations/vercel/src/analytics.ts index 6a06dffc0..95dee83e3 100644 --- a/packages/integrations/vercel/src/analytics.ts +++ b/packages/integrations/vercel/src/analytics.ts @@ -39,7 +39,7 @@ const sendToAnalytics = (metric: Metric, options: Options) => { }; function webVitals() { - const analyticsId = (import.meta as any).env.VERCEL_ANALYTICS_ID; + const analyticsId = (import.meta as any).env.PUBLIC_VERCEL_ANALYTICS_ID; if (!analyticsId) { console.error('[Analytics] VERCEL_ANALYTICS_ID not found'); return;