Skip to content

Commit 7466319

Browse files
committed
Support passing “production” when deploying
1 parent 84d8fb5 commit 7466319

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
loadImage: z.boolean().default(false),
4949
buildPlatform: z.enum(["linux/amd64", "linux/arm64"]).default("linux/amd64"),
@@ -201,6 +201,11 @@ async function _deployCommand(dir: string, options: DeployCommandOptions) {
201201
}
202202
}
203203

204+
//coerce env from production to prod
205+
if (options.env === "production") {
206+
options.env = "prod";
207+
}
208+
204209
const envVars = resolveLocalEnvVars(options.envFile);
205210

206211
if (envVars.TRIGGER_PROJECT_REF) {

0 commit comments

Comments
 (0)