Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/r2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export async function uploadToR2(
}

// Return public URL of R2 (should be using custom domain)
const publicUrl = `https://${(env as any).CLOUDFLARE_R2_URL}/${key}`;
// CLOUDFLARE_R2_URL already includes the protocol (https://)
const publicUrl = `${(env as any).CLOUDFLARE_R2_URL}/${key}`;

return {
success: true,
Expand Down