name = "r2-upload-worker" main = "src/index.js" compatibility_date = "2024-09-23" compatibility_flags = ["nodejs_compat"] # Secrets (set via `wrangler secret put `): # R2_ACCOUNT_ID - your Cloudflare account ID # R2_ACCESS_KEY_ID - R2 API token access key # R2_SECRET_ACCESS_KEY - R2 API token secret # R2_BUCKET_NAME - your R2 bucket name # UPLOAD_SECRET - random string, same value used in blog .env # ALLOWED_ORIGIN - your blog's URL, e.g. https://yourdomain.com