npm install
npm run watch
# open build/index.html
aws configure
npm run lint
npm run build
aws s3api put-object --bucket undr --key index.html --content-type 'text/html' --body build/index.html
aws cloudfront create-invalidation --distribution-id E1Y0XU2SEIEYXC --paths '/index.html'
Amazon S3.
URL | Effect |
---|---|
http://{uri} , http://{uri}?(.+) , http://{uri}/ , http://{uri}/?(.+) , https://{uri} , https://{uri}?(.+) , https://{uri}/ , https://{uri}/?(.+) |
returns an XML file list |
http://{uri}/(.+) |
returns the S3 object at $1 if $1 is a valid path and error 404 otherwise |
URL parameters (query string):
list-type
:2
delimiter
:/
encoding-type
:url
max-keys
:1000000
prefix
:dvs09/
Amazon S3 static website hosting.
URL | Effect |
---|---|
http://{uri} |
times out |
http://{uri} , http://{uri}/ |
returns index.html |
http://{uri}/(.+) |
returns the S3 object at $1 if $1 is a valid path and redirect to https://www.undr.space/#/$1 otherwise |
Cloudfront with origin undr.s3.ap-southeast-2.amazonaws.com
. Forwards URL parameters.
URL | Effect |
---|---|
http://{uri} , http://{uri}/(.*) , https://{uri} , https://{uri}/(.*) |
returns http://undr.s3.ap-southeast-2.amazonaws.com/$1 |
Cloudfront with origin undr.s3-website-ap-southeast-2.amazonaws.com
. Does not forward URL parameters.
URL | Effect |
---|---|
http://{uri} , http://{uri}/(.*) , https://{uri} , https://{uri}/(.*) |
returns http://undr.s3-website-ap-southeast-2.amazonaws.com/$1 |
DNS CNAME d1juofrn4vv0j9.cloudfront.net