How to setup CloudFront url for AWS S3 provider in Strapi

Viewed 1862

I have installed strapi-provider-upload-aws-s3 and uploaded file to s3 successfully but is there any way we can change the link to cloudfront instead of using s3 ?

strapi": "3.0.0",
"strapi-provider-upload-aws-s3": "^3.0.0",

config/plugins.js

module.exports = ({ env }) => ({
  upload: {
    accessKeyId: "xxxxxxxxxx",
    secretAccessKey: "xxxxxxxx",
    region: "xxxxx",
    params: {
      Bucket: "xxxxx",
    },
    cloudfrontIsEnabled: 'Yes',
    cloudfrontURL: "xxx.cloudfront.net",
  }
}); (edited) 

Found old issue but no luck in the new version

1 Answers
Related