Serve images from R2 via files.iddaai.com
Deploy Iddaai Backend / build-and-deploy (push) Successful in 54s

Add IMAGE_BASE_URL to the deploy env so the backend builds image URLs
against the Cloudflare image-proxy Worker instead of mackolik, and check
in the Worker source (already live on files.iddaai.com).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 14:24:38 +03:00
parent e0fbde2fde
commit 9a8f9941b6
7 changed files with 206 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
name = "iddaai-image-proxy"
main = "src/index.ts"
compatibility_date = "2026-06-01"
[[r2_buckets]]
binding = "BUCKET"
bucket_name = "iddaai-images"
# Custom domain (configured in the Cloudflare dashboard on 2026-06-10;
# kept here so CLI deploys stay in sync).
[[routes]]
pattern = "files.iddaai.com"
custom_domain = true