Skip to content

Commit 67b5268

Browse files
committed
cloudfront
1 parent 839932a commit 67b5268

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

script/deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ fi
1616
aws s3 sync --acl public-read --follow-symlinks --delete output "s3://${AWS_BUCKET}"
1717
# https://anands.github.io/blog/2018/11/18/serve-static-pages-on-s3-without-html-extension/
1818
aws s3 cp "s3://${AWS_BUCKET}/index" "s3://${AWS_BUCKET}/index" --content-type="text/html" --acl public-read
19+
# FIXME cloudfront won't respect content type
20+
aws s3 cp "s3://${AWS_BUCKET}/index" "s3://${AWS_BUCKET}/index.html" --content-type="text/html" --acl public-read
1921
aws s3 cp "s3://${AWS_BUCKET}/about" "s3://${AWS_BUCKET}/about" --content-type="text/html" --recursive --acl public-read
2022
aws s3 cp "s3://${AWS_BUCKET}/guides" "s3://${AWS_BUCKET}/guides" --content-type="text/html" --recursive --acl public-read

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy