Skip to content

Commit 45b8fed

Browse files
committed
set content type
1 parent b1c016f commit 45b8fed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/deploy.sh

+3
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ fi
1414
./script/build.sh
1515

1616
aws s3 sync --acl public-read --follow-symlinks --delete output "s3://${AWS_BUCKET}"
17+
# https://anands.github.io/blog/2018/11/18/serve-static-pages-on-s3-without-html-extension/
18+
aws s3 cp "s3://${AWS_BUCKET}/index" "s3://${AWS_BUCKET}/index" --content-type="text/html"
19+
aws s3 cp "s3://${AWS_BUCKET}/guides" "s3://${AWS_BUCKET}/guides" --content-type="text/html" --recursive

0 commit comments

Comments
 (0)