Merge pull request #1721 from PR0M3TH3AN/codex/remove-url-limitation-for-storage-bucket

Allow any public URL for storage prefix
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-26 07:01:48 -05:00
commit 8045dae9fb
1 file changed
+2 -14
+2 -14
View File
@@ -9064,20 +9064,8 @@ export class ProfileModalController {
handlePublicUrlInput() {
if (!this.storagePrefixInput || !this.storagePrefixWarning) return;
const value = this.storagePrefixInput.value.trim().toLowerCase();
if (
value.includes(".r2.cloudflarestorage.com") ||
value.includes(".s3.") ||
value.includes(".amazonaws.com")
) {
this.storagePrefixWarning.textContent =
"This looks like your S3 Endpoint. Please enter your Public Access URL (e.g. r2.dev) instead.";
this.storagePrefixWarning.classList.remove("hidden");
} else {
this.storagePrefixWarning.textContent = "";
this.storagePrefixWarning.classList.add("hidden");
}
this.storagePrefixWarning.textContent = "";
this.storagePrefixWarning.classList.add("hidden");
}
updateStorageFormVisibility() {