Skip to content

Commit

Permalink
Switched S3File bucket url from app.domain.com.s3.amazonaws.com to s3…
Browse files Browse the repository at this point in the history
….amazonaws.com/app.domain.com. And the same for the thumbnail bucket.
  • Loading branch information
rizen committed Oct 28, 2024
1 parent 7736048 commit 13c4dfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ving/docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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.
* Switched S3File bucket url from app.domain.com.s3.amazonaws.com to s3.amazonaws.com/app.domain.com. And the same for the thumbnail bucket.

### 2024-10-27
* Added ego behavior to useVingRecord() and useVingKind() to allow disambiguation of multiple copies of the same record with different views.
Expand Down
2 changes: 1 addition & 1 deletion ving/record/records/S3File.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class S3FileRecord extends VingRecord {
case 'self':
return this.fileUrl();
case 'thumbnail':
return `https://${process.env.VING_AWS_THUMBNAILS_BUCKET}.s3.amazonaws.com/${formatS3FolderName(stringifyId(this.get('id')))}.png`;
return `https://s3.amazonaws.com/${process.env.VING_AWS_THUMBNAILS_BUCKET}/${formatS3FolderName(stringifyId(this.get('id')))}.png`;
case 'extension': {
const image = extensionMap[this.get('extension')] || 'unknown';
return `/img/filetype/${image}.png`;
Expand Down

0 comments on commit 13c4dfb

Please sign in to comment.