Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiaslins committed Oct 5, 2023
1 parent 01090d9 commit 6821c73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vercel/analytics",
"version": "1.1.0-beta.7",
"version": "1.1.0-beta.8",
"description": "Gain real-time traffic insights with Vercel Web Analytics",
"keywords": [
"analytics",
Expand Down
7 changes: 0 additions & 7 deletions packages/web/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@ export async function track(
tmp = headers;
}

if (!ENDPOINT) {
throw new Error(
'VERCEL_URL is not defined in the environment variables.',
);
}

const origin = requestContext?.url || tmp.referer || `https://${ENDPOINT}`;

const body = {
Expand Down Expand Up @@ -116,7 +110,6 @@ export async function track(
'user-agent': tmp['user-agent'] as string,
'x-vercel-ip': tmp['x-forwarded-for'] as string,
'x-va-server': '1',
cookie: tmp.cookie as string,
}
: {
'x-va-server': '2',
Expand Down

0 comments on commit 6821c73

Please sign in to comment.