cloudflare/vinext
Publicmirrored from https://github.com/cloudflare/vinextAvailable
examples/app-router-cloudflare/wrangler.jsonc
20lines · modecode
| 1 | { |
| 2 | "$schema": "node_modules/wrangler/config-schema.json", |
| 3 | "name": "app-router-cloudflare", |
| 4 | "compatibility_date": "2026-02-12", |
| 5 | "compatibility_flags": ["nodejs_compat"], |
| 6 | "main": "./worker/index.ts", |
| 7 | "preview_urls": true, |
| 8 | "assets": { |
| 9 | "not_found_handling": "none", |
| 10 | // Expose static assets to the Worker via env.ASSETS so the image |
| 11 | // optimization handler can fetch source images programmatically. |
| 12 | "binding": "ASSETS" |
| 13 | }, |
| 14 | // Cloudflare Images binding for next/image optimization. |
| 15 | // Enables resize, format negotiation (AVIF/WebP), and quality transforms |
| 16 | // at the edge. No user setup needed — wrangler creates the binding automatically. |
| 17 | "images": { |
| 18 | "binding": "IMAGES" |
| 19 | } |
| 20 | } |
| 21 | |