File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ if [[ -z "$AWS_BUCKET" ]]; then
12
12
fi
13
13
14
14
./script/build.sh
15
+ # FIXME cloudfront won't respect content type
16
+ cp output/index output/index.html
15
17
16
18
aws s3 sync --acl public-read --follow-symlinks --delete output " s3://${AWS_BUCKET} "
17
19
# https://anands.github.io/blog/2018/11/18/serve-static-pages-on-s3-without-html-extension/
18
20
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
21
21
aws s3 cp " s3://${AWS_BUCKET} /about" " s3://${AWS_BUCKET} /about" --content-type=" text/html" --recursive --acl public-read
22
22
aws s3 cp " s3://${AWS_BUCKET} /guides" " s3://${AWS_BUCKET} /guides" --content-type=" text/html" --recursive --acl public-read
You can’t perform that action at this time.
0 commit comments