Skip to content

Commit

Permalink
feat: url check
Browse files Browse the repository at this point in the history
  • Loading branch information
sohamjaiswal committed Jan 29, 2024
1 parent f70b6e2 commit 61ebef5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/guilded-media.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const guildedMediaLink = (awsUrl: string) => {
// replace https://s3-us-west-2.amazonaws.com/www.guilded.gg with https://cdn.gilcdn.com
// keep everything else same
if (!awsUrl) return awsUrl;
return awsUrl.replace('https://s3-us-west-2.amazonaws.com/www.guilded.gg', 'https://cdn.gilcdn.com');
}

0 comments on commit 61ebef5

Please sign in to comment.