Merge pull request #1692 from PR0M3TH3AN/fix-r2-public-url-saving-1588983637873017456

Fix R2 Public URL saving in Profile Modal
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-25 16:14:27 -05:00
commit 30d2929583
1 file changed
+3
+3
View File
@@ -9224,6 +9224,9 @@ export class ProfileModalController {
// We can store it in meta if we want to show it in UI without decrypting.
if (provider === "cloudflare_r2") {
meta.accountId = endpointOrAccount;
// For R2, the "Prefix" input serves as the Public Base URL (e.g. https://pub-xxx.r2.dev)
meta.publicBaseUrl = prefix;
meta.baseDomain = prefix;
} else {
meta.publicBaseUrl = publicBaseUrl;
meta.baseDomain = publicBaseUrl;