From d1c5469ec962021a788acd17ccd2ddddc5c1bc2b Mon Sep 17 00:00:00 2001 From: Dongwoo Gim Date: Sat, 20 Jul 2024 20:16:06 +0900 Subject: [PATCH] Architect prunes static files before deploying CloudFormation stack --- src/sam/static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sam/static/index.js b/src/sam/static/index.js index 336369ed..0da6228e 100644 --- a/src/sam/static/index.js +++ b/src/sam/static/index.js @@ -6,7 +6,7 @@ module.exports = function staticDeploy (params, preDeploy, callback) { // It is safe to publish static assets pre-deploy if: // - Fingerprinting is enabled (including `external`, which we will assume was done properly) - if (preDeploy && compat.hasStaticBucket && inv.static?.fingerprint) { + if (preDeploy && compat.hasStaticBucket && inv.static) { ran = true _static({ deployAction: 'put', ...params }, callback) }