Skip to content

Commit 94e880b

Browse files
committed
try again
1 parent 67b5268 commit 94e880b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ if [[ -z "$AWS_BUCKET" ]]; then
1212
fi
1313

1414
./script/build.sh
15+
# FIXME cloudfront won't respect content type
16+
cp output/index output/index.html
1517

1618
aws s3 sync --acl public-read --follow-symlinks --delete output "s3://${AWS_BUCKET}"
1719
# https://anands.github.io/blog/2018/11/18/serve-static-pages-on-s3-without-html-extension/
1820
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
2121
aws s3 cp "s3://${AWS_BUCKET}/about" "s3://${AWS_BUCKET}/about" --content-type="text/html" --recursive --acl public-read
2222
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