Skip to content

Commit 5b4eacb

Browse files
authored
fix: Case-insensitive checking environment value (#521)
1 parent d6d7b05 commit 5b4eacb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export async function deploy(options: SWACLIConfig) {
269269

270270
// set the DEPLOYMENT_ENVIRONMENT env variable only when the user has provided
271271
// a deployment environment which is not "production".
272-
if (options.env !== "production" && options.env !== "prod") {
272+
if (options.env?.toLowerCase() !== "production" && options.env?.toLowerCase() !== "prod") {
273273
deployClientEnv.DEPLOYMENT_ENVIRONMENT = options.env;
274274
}
275275

0 commit comments

Comments
 (0)