Feat: Add Pages bindings reference with R2_IMAGES

This commit is contained in:
2026-02-13 11:30:28 -08:00
parent be18840701
commit 38ff34a284

View File

@@ -90,6 +90,24 @@ This is a free community service. Donations help cover API and infrastructure co
| KV Namespace | `DIRECT_IMG_CACHE` | Query → cache existence + timestamp |
| KV Namespace | `DIRECT_IMG_RATE` | Per-IP daily new-search counter |
### Pages Bindings
Set in **Settings → Functions → Bindings**:
| Type | Variable name | Resource |
|---|---|---|
| R2 Bucket | `R2_IMAGES` | `direct-img-store` |
| KV Namespace | `DIRECT_IMG_CACHE` | `DIRECT_IMG_CACHE` |
| KV Namespace | `DIRECT_IMG_RATE` | `DIRECT_IMG_RATE` |
### Environment Variables / Secrets
Set in **Settings → Environment variables**:
| Type | Variable | Description |
|---|---|---|
| Secret | `BING_API_KEY` | Bing Image Search API subscription key |
### R2: `direct-img-store`
Key is derived deterministically from the query — no need to store it in KV.
@@ -158,12 +176,6 @@ Set manually in **Security → WAF → Rate limiting rules**:
- Per: IP
- Action: Managed Challenge
### Environment Variables / Secrets
| Variable | Description |
|---|---|
| `BING_API_KEY` | Bing Image Search API subscription key |
---
## Stack