Skip to content

Commit

Permalink
Revert vercel env fix (#6776)
Browse files Browse the repository at this point in the history
  • Loading branch information
nblackburn authored Apr 10, 2023
1 parent 671a011 commit 84a4648
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shaggy-chefs-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---

Revert change to environment variable
2 changes: 1 addition & 1 deletion packages/integrations/vercel/src/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84a4648

Please sign in to comment.