File tree Expand file tree Collapse file tree
components/Downloads/Release Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 */
3737export 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/**
Original file line number Diff line number Diff line change 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" ,
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" ,
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" ,
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" ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments