We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5571b06 commit 0a388ceCopy full SHA for 0a388ce
packages/build/src/extensions/vercelSyncEnvVars.ts
@@ -32,6 +32,11 @@ export function syncVercelEnvVars(
32
const vercelEnvironment =
33
environmentMap[ctx.environment as keyof typeof environmentMap];
34
35
+ if (!vercelEnvironment) {
36
+ throw new Error(
37
+ `Invalid environment '${ctx.environment}'. Expected 'prod', 'staging', or 'dev'.`
38
+ );
39
+ }
40
const vercelApiUrl =
41
`https://api.vercel.com/v8/projects/${projectId}/env?decrypt=true`;
42
0 commit comments