Closed charleneleong-ai closed 4 years ago
Interesting! Thanks for reporting. That makes sense. So folks might not want acceleration because:
I think it would be helpful to have an accelerated: false
option with the default being true
.
I've fixed it here: https://github.com/serverless-components/website/pull/48
You could try it out on your end by specifying the dev
version in servelress.yml
component: website@dev
name: my-website
Thanks! It works fine with @dev, however it seems to not be hosting my resources specifically but the a simple Hello Serverless HTML page.
Is this configuration correct ?
name: reactapp-sls-components
stage: prod
component: website@dev
inputs:
code:
# root: ./
src: dist
hook: npm run build
# dist: ./dist
bucketName: charlene-reactapp-sls-components.com
domain: charlene-reactapp-sls-components.com # (optional) domain name. this could also be a subdomain.
region: ap-southeast-2
replace code
with src
component: website@dev
inputs:
src:
src: ./
dist: dist
hook: npm run build
Sorry for the confusion there. I'm gonna update the docs with this as an example. I've also published 1.0.1
with this fix.
I'm trying to deploy a simple React app in ap-southeast-2 but having trouble accessing the s3 transfer acceleration endpoint.
Additionally, buckets used with Amazon S3 Transfer Acceleration can't have dots (.) in their names according to these docs https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html where by default, my bucket name has period because I am trying to declare a domain.
Is it possible to turn off S3 Transfer Acceleration? Not sure if others are having this issue.
Also