Skip to content

Commit 119765d

Browse files
committed
fix: attempt to fix vercel env
1 parent a98751e commit 119765d

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

apps/site/components/Downloads/Release/ReleaseCodeBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ReleaseCodeBox: FC = () => {
2222
const interpreter = createSval({ props: { release } }, 'script');
2323

2424
// Evaluates the JavaScript code applying the release context to the code
25-
interpreter.run(`exports.content = \`${snippet?.content}\``);
25+
interpreter.run(`exports.content = \`${snippet?.content ?? ''}\``);
2626

2727
// Sets the parsed raw string to be used by the JSX CodeBox
2828
return interpreter.exports.content;

apps/site/next.constants.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const IS_DEVELOPMENT = process.env.NODE_ENV === 'development';
1212
*
1313
* @see https://vercel.com/docs/concepts/projects/environment-variables/system-environment-variables#framework-environment-variables
1414
*/
15-
export const VERCEL_ENV = process.env.NEXT_PUBLIC_VERCEL_ENV || undefined;
15+
export const VERCEL_ENV = process.env.VERCEL_ENV || undefined;
1616

1717
/**
1818
* This is used for telling Next.js to do a Static Export Build of the Website
@@ -36,8 +36,8 @@ export const ENABLE_STATIC_EXPORT =
3636
*/
3737
export const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL
3838
? process.env.NEXT_PUBLIC_BASE_URL
39-
: process.env.NEXT_PUBLIC_VERCEL_URL
40-
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
39+
: process.env.VERCEL_URL
40+
? `https://${process.env.VERCEL_URL}`
4141
: 'https://nodejs.org';
4242

4343
/**

apps/site/turbo.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"cache": false,
88
"persistent": true,
99
"env": [
10-
"NEXT_PUBLIC_VERCEL_ENV",
10+
"VERCEL_ENV",
11+
"VERCEL_URL",
1112
"NEXT_PUBLIC_STATIC_EXPORT",
1213
"NEXT_PUBLIC_BASE_URL",
13-
"NEXT_PUBLIC_VERCEL_URL",
1414
"NEXT_PUBLIC_DIST_URL",
1515
"NEXT_PUBLIC_DOCS_URL",
1616
"NEXT_PUBLIC_BASE_PATH",
@@ -32,10 +32,10 @@
3232
],
3333
"outputs": [".next/**", "!.next/cache/**"],
3434
"env": [
35-
"NEXT_PUBLIC_VERCEL_ENV",
35+
"VERCEL_ENV",
36+
"VERCEL_URL",
3637
"NEXT_PUBLIC_STATIC_EXPORT",
3738
"NEXT_PUBLIC_BASE_URL",
38-
"NEXT_PUBLIC_VERCEL_URL",
3939
"NEXT_PUBLIC_DIST_URL",
4040
"NEXT_PUBLIC_DOCS_URL",
4141
"NEXT_PUBLIC_BASE_PATH",
@@ -50,10 +50,10 @@
5050
"cache": false,
5151
"persistent": true,
5252
"env": [
53-
"NEXT_PUBLIC_VERCEL_ENV",
53+
"VERCEL_ENV",
54+
"VERCEL_URL",
5455
"NEXT_PUBLIC_STATIC_EXPORT",
5556
"NEXT_PUBLIC_BASE_URL",
56-
"NEXT_PUBLIC_VERCEL_URL",
5757
"NEXT_PUBLIC_DIST_URL",
5858
"NEXT_PUBLIC_DOCS_URL",
5959
"NEXT_PUBLIC_BASE_PATH",
@@ -74,10 +74,10 @@
7474
],
7575
"outputs": [".next/**", "!.next/cache/**"],
7676
"env": [
77-
"NEXT_PUBLIC_VERCEL_ENV",
77+
"VERCEL_ENV",
78+
"VERCEL_URL",
7879
"NEXT_PUBLIC_STATIC_EXPORT",
7980
"NEXT_PUBLIC_BASE_URL",
80-
"NEXT_PUBLIC_VERCEL_URL",
8181
"NEXT_PUBLIC_DIST_URL",
8282
"NEXT_PUBLIC_DOCS_URL",
8383
"NEXT_PUBLIC_BASE_PATH",

packages/i18n/turbo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"dependsOn": [],
1111
"outputs": ["dist/**"],
1212
"env": [
13-
"NEXT_PUBLIC_VERCEL_ENV",
13+
"VERCEL_ENV",
14+
"VERCEL_URL",
1415
"NEXT_PUBLIC_STATIC_EXPORT",
1516
"NEXT_PUBLIC_BASE_URL",
16-
"NEXT_PUBLIC_VERCEL_URL",
1717
"NEXT_PUBLIC_DIST_URL",
1818
"NEXT_PUBLIC_DOCS_URL",
1919
"NEXT_PUBLIC_BASE_PATH",

0 commit comments

Comments
 (0)