Closed fodurrr closed 5 years ago
@fodurrr are you using windows? does this PR fix the issue? https://github.com/serverless-components/aws-s3/pull/4
Yes I am on windows.
My problem is not fixed yet but it is probably because website components has in the package.json old version of "@serverless/aws-s3": "^2.0.0"
it should be updated.
Edit: Bumping @serverless/aws-s3
dependency to ^4.0.0 solves the problem.
Thanks @fodurrr ... Merged and released
The folders are not uploaded/not created on S3. The folder names are merged into the filenames as string (flattened), therefore static assets are not displayed on the created website, worst case with create-react-app that application will not even start because static chunk JavaScript files are created in the static folder.
When I upload the static folder via the AWS console manually into the same bucket then everything works fine.
Probably the problem is here: websiteBucket.upload.
Btw where can i find this @serverless/aws-s3 package which has the
websiteBucket.upload
function on github? May be I could do a PR. Thanks