serverless-nuxt icon indicating copy to clipboard operation
serverless-nuxt copied to clipboard

Should ACL option be excluded if cdnPath is specified?

Open ffxsam opened this issue 2 years ago • 0 comments

S3 buckets behind a CDN don't need public read access at all. So when I try to deploy to my S3 bucket, I get "access denied" because the putObject call is doing ACL: 'public-read'.

There's also another bug where if you specify a cdnPath like this:

cdnPath: https://cdn.site.org/subfolder

the files get put at the root level in the S3 bucket, e.g. v1.0/file1.js rather than subfolder/v1.0/file1.js.

I'm happy to open PRs for these.

ffxsam avatar Dec 13 '21 17:12 ffxsam