Skip to content

Commit

Permalink
Merge pull request #3411 from tloncorp/po/land-1759-fix-regression-ef…
Browse files Browse the repository at this point in the history
…fecting-cloudflare-r2-s3-buckets

s3: fix a regression that caused uploads to fail for cloudflare R2 users
  • Loading branch information
patosullivan authored Apr 11, 2024
2 parents bbe02d5 + 224bc52 commit b77d4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/tlon-web/src/state/storage/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export const useFileStore = create<FileStore>((set, get) => ({
let s3Url: URL;

if (config.publicUrlBase) {
s3Url = new URL(config.publicUrlBase);
s3Url = new URL(key, config.publicUrlBase);
} else {
s3Url = new URL(
await getSignedUrl(client, command)
Expand Down

0 comments on commit b77d4ef

Please sign in to comment.