0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

@astrojs/vercel: Fix vercel analytics id not being provided (#6751)

* fix wrong environment variable being used

* added changeset
This commit is contained in:
Nathaniel Blackburn 2023-04-05 14:23:40 +01:00 committed by GitHub
parent f5eb4140ec
commit e96be17a58

View file

@ -39,7 +39,7 @@ const sendToAnalytics = (metric: Metric, options: Options) => {
};
function webVitals() {
const analyticsId = (import.meta as any).env.PUBLIC_VERCEL_ANALYTICS_ID;
const analyticsId = (import.meta as any).env.VERCEL_ANALYTICS_ID;
if (!analyticsId) {
console.error('[Analytics] VERCEL_ANALYTICS_ID not found');
return;