yeah ive handled the upload stuff with :
// ...
upload: {
config: {
provider: 'aws-s3',
providerOptions: {
s3Options: {
credentials: {
accessKeyId: env('AWS_ACCESS_KEY_ID'),
secretAccessKey: env('AWS_SECRET'),
},
region: env('AWS_REGION'),
params: {
ACL: env('AWS_ACL', 'private'), // Adjust if needed (private)
Bucket: env('AWS_BUCKET'),
},
},
},
},
},
// ...
});
but its just the act of when the client selects the media from the admin, it corrosponds to the same media that is from cloudfront… so my approach was to modify the url before its served to the front end so it contains the cloudfront string instead of the old url