diff --git a/packages/cli/src/deploy/staticApp/command.ts b/packages/cli/src/deploy/staticApp/command.ts index f95cf08..470e9e9 100644 --- a/packages/cli/src/deploy/staticApp/command.ts +++ b/packages/cli/src/deploy/staticApp/command.ts @@ -58,6 +58,12 @@ export const deployStaticAppCommand: CommandModule = { type: 'string', }, }) + .middleware((argv) => { + const { acmArn, acmArnExportedName, aliases, spa } = argv; + if (acmArn || acmArnExportedName || aliases || spa) { + argv.cloudfront = true; + } + }) .check(({ aliases, acmArnExportedName, acmArn }) => { if (aliases && !(acmArn || acmArnExportedName)) { throw new Error(