diff --git a/ving/docs/change-log.md b/ving/docs/change-log.md index 9c36615f..a6fe6f45 100644 --- a/ving/docs/change-log.md +++ b/ving/docs/change-log.md @@ -7,6 +7,7 @@ outline: deep ### 2024-10-28 * Switched jobs to use redis from a remote cluster. + * Switched S3File bucket url from app.domain.com.s3.amazonaws.com to s3.amazonaws.com/app.domain.com. ### 2024-10-27 * Added ego behavior to useVingRecord() and useVingKind() to allow disambiguation of multiple copies of the same record with different views. diff --git a/ving/record/records/S3File.mjs b/ving/record/records/S3File.mjs index a5274a99..8b96a9d8 100644 --- a/ving/record/records/S3File.mjs +++ b/ving/record/records/S3File.mjs @@ -83,7 +83,7 @@ export class S3FileRecord extends VingRecord { */ fileUrl() { - return `https://${process.env.VING_AWS_UPLOADS_BUCKET}.s3.amazonaws.com/${this.get('s3folder')}/${this.get('filename')}`; + return `https://s3.amazonaws.com/${process.env.VING_AWS_UPLOADS_BUCKET}/${this.get('s3folder')}/${this.get('filename')}`; } /**