diff --git a/mage_helpers/cdk.go b/mage_helpers/cdk.go index 68881b6d5532676b1e20e92d934956bbc442d731..c99fb7a1d2d5fddd4470b3c399f5d97d79e0adb6 100644 --- a/mage_helpers/cdk.go +++ b/mage_helpers/cdk.go @@ -78,7 +78,10 @@ func CDKDeploy(cdkDir string, env string, stack string, exclusively bool, local if local { commandArgs = append(commandArgs, fmt.Sprintf(`--profile=%v`, profile)) - commandArgs = append(commandArgs, `--hotswap`) // make it go fast + + if env == "dev" { + commandArgs = append(commandArgs, `--hotswap`) // make it go fast + } } commandArgs = append(commandArgs,