From d7f33fe8635cfad4840ae2cc8a72cc6e634fe5eb Mon Sep 17 00:00:00 2001 From: David Date: Thu, 29 Jul 2021 18:33:59 -0400 Subject: [PATCH] bin/deploy-site.sh BUGFIX: add / to create-invalidation paths --- bin/deploy-site.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy-site.sh b/bin/deploy-site.sh index 9faf613..53715a6 100755 --- a/bin/deploy-site.sh +++ b/bin/deploy-site.sh @@ -112,7 +112,7 @@ function invalidate_cloudfront_paths() { # https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects aws cloudfront create-invalidation \ --distribution-id ${cloudfront_distribution_id} \ - --paths '/about.html' '/browse-topics-lists*' '/index.html' '/shared*' '/topic-pages*' + --paths '/' '/about.html' '/browse-topics-lists*' '/index.html' '/shared*' '/topic-pages*' } function sync_s3_bucket() {