Skip to content

Commit dc3fe4d

Browse files
committed
chore: remove unused vars
1 parent c217ef0 commit dc3fe4d

2 files changed

Lines changed: 2 additions & 27 deletions

File tree

apps/site/next.constants.mjs

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@ export const IS_DEV_ENV = process.env.NODE_ENV === 'development';
1414
*/
1515
export const VERCEL_ENV = process.env.VERCEL_ENV || undefined;
1616

17-
/**
18-
* This is used for telling Next.js if we are current during build time or in runtime environment
19-
*
20-
* Can be used for conditionally enabling features that we know are Vercel only
21-
*
22-
* @see https://vercel.com/docs/projects/environment-variables/system-environment-variables#VERCEL_REGION
23-
*/
24-
export const VERCEL_REGION = process.env.VERCEL_REGION || undefined;
25-
2617
/**
2718
* This is used for telling Next.js to do a Static Export Build of the Website
2819
*
@@ -52,6 +43,8 @@ export const ENABLE_STATIC_EXPORT_LOCALE =
5243
* This variable can either come from the Vercel Deployment as `NEXT_PUBLIC_VERCEL_URL` or from the `NEXT_PUBLIC_BASE_URL` Environment Variable that is manually defined
5344
* by us if necessary. Otherwise it will fallback to the default Node.js Website URL.
5445
*
46+
* @TODO: We should get rid of needing to rely on `VERCEL_URL` for deployment URL.
47+
*
5548
* @see https://vercel.com/docs/concepts/projects/environment-variables/system-environment-variables#framework-environment-variables
5649
*/
5750
export const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL
@@ -86,20 +79,6 @@ export const DOCS_URL =
8679
*/
8780
export const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || '';
8881

89-
/**
90-
* This is used for fetching static next-data through the /en/next-data/ endpoint
91-
*
92-
* Note this is assumes that the Node.js Website is either running within Vercel Environment
93-
* or running locally (either production or development) mode
94-
*
95-
* Note this variable can be overridden via a manual Environment Variable defined by us if necessary.
96-
*/
97-
export const NEXT_DATA_URL = process.env.NEXT_PUBLIC_DATA_URL
98-
? process.env.NEXT_PUBLIC_DATA_URL
99-
: VERCEL_ENV
100-
? `${BASE_URL}${BASE_PATH}/en/next-data/`
101-
: `http://localhost:${process.env.PORT ?? 3000}/en/next-data/`;
102-
10382
/**
10483
* This is the default type of blog post type that we use for OG Meta Tags
10584
*/

apps/site/turbo.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"env": [
1111
"VERCEL_ENV",
1212
"VERCEL_URL",
13-
"VERCEL_REGION",
1413
"NEXT_PUBLIC_STATIC_EXPORT",
1514
"NEXT_PUBLIC_STATIC_EXPORT_LOCALE",
1615
"NEXT_PUBLIC_BASE_URL",
@@ -37,7 +36,6 @@
3736
"env": [
3837
"VERCEL_ENV",
3938
"VERCEL_URL",
40-
"VERCEL_REGION",
4139
"NEXT_PUBLIC_STATIC_EXPORT",
4240
"NEXT_PUBLIC_STATIC_EXPORT_LOCALE",
4341
"NEXT_PUBLIC_BASE_URL",
@@ -57,7 +55,6 @@
5755
"env": [
5856
"VERCEL_ENV",
5957
"VERCEL_URL",
60-
"VERCEL_REGION",
6158
"NEXT_PUBLIC_STATIC_EXPORT",
6259
"NEXT_PUBLIC_STATIC_EXPORT_LOCALE",
6360
"NEXT_PUBLIC_BASE_URL",
@@ -83,7 +80,6 @@
8380
"env": [
8481
"VERCEL_ENV",
8582
"VERCEL_URL",
86-
"VERCEL_REGION",
8783
"NEXT_PUBLIC_STATIC_EXPORT",
8884
"NEXT_PUBLIC_STATIC_EXPORT_LOCALE",
8985
"NEXT_PUBLIC_BASE_URL",

0 commit comments

Comments
 (0)