Skip to content

Commit f44c86a

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/detect-self-hosted
2 parents d00ed33 + 26b0523 commit f44c86a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/cli-v3/src/commands/deploy.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import { updateTriggerPackages } from "./update.js";
4343
const DeployCommandOptions = CommonCommandOptions.extend({
4444
dryRun: z.boolean().default(false),
4545
skipSyncEnvVars: z.boolean().default(false),
46-
env: z.enum(["prod", "staging", "preview"]),
46+
env: z.enum(["prod", "staging", "preview", "production"]),
4747
branch: z.string().optional(),
4848
load: z.boolean().optional(),
4949
config: z.string().optional(),
@@ -185,6 +185,11 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
185185
}
186186
}
187187

188+
//coerce env from production to prod
189+
if (options.env === "production") {
190+
options.env = "prod";
191+
}
192+
188193
const envVars = resolveLocalEnvVars(options.envFile);
189194

190195
if (envVars.TRIGGER_PROJECT_REF) {

0 commit comments

Comments
 (0)