mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
[build-utils] Fix getPrefixedEnvVars() to handle VERCEL_PROJECT_PRODUCTION_URL (#11506)
This will ensure the framework env var prefix is applied to `VERCEL_PROJECT_PRODUCTION_URL` as well. https://vercel.com/docs/projects/environment-variables/system-environment-variables#framework-environment-variables
This commit is contained in:
@@ -15,6 +15,7 @@ describe('Test `getPrefixedEnvVars()`', () => {
|
||||
VERCEL_URL: 'example.vercel.sh',
|
||||
VERCEL_ENV: 'production',
|
||||
VERCEL_BRANCH_URL: 'example-git-main-acme.vercel.app',
|
||||
VERCEL_PROJECT_PRODUCTION_URL: 'example.com',
|
||||
USER_ENV_VAR_NOT_VERCEL: 'example.com',
|
||||
VERCEL_ARTIFACTS_TOKEN: 'abc123',
|
||||
FOO: 'bar',
|
||||
@@ -24,6 +25,7 @@ describe('Test `getPrefixedEnvVars()`', () => {
|
||||
NEXT_PUBLIC_VERCEL_URL: 'example.vercel.sh',
|
||||
NEXT_PUBLIC_VERCEL_ENV: 'production',
|
||||
NEXT_PUBLIC_VERCEL_BRANCH_URL: 'example-git-main-acme.vercel.app',
|
||||
NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL: 'example.com',
|
||||
TURBO_CI_VENDOR_ENV_KEY: 'NEXT_PUBLIC_VERCEL_',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user