Revert vercel env fix (#6776)
This commit is contained in:
parent
671a011d4f
commit
84a4648884
2 changed files with 6 additions and 1 deletions
5
.changeset/shaggy-chefs-build.md
Normal file
5
.changeset/shaggy-chefs-build.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Revert change to environment variable
|
|
@ -39,7 +39,7 @@ const sendToAnalytics = (metric: Metric, options: Options) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
function webVitals() {
|
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) {
|
if (!analyticsId) {
|
||||||
console.error('[Analytics] VERCEL_ANALYTICS_ID not found');
|
console.error('[Analytics] VERCEL_ANALYTICS_ID not found');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue