mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-10-28 23:14:51 +00:00
Also drops the Pages fallback notes, since the Pages project is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
1.1 KiB
JSON
21 lines
1.1 KiB
JSON
{
|
|
"name": "direct-img",
|
|
"main": "src/worker.js",
|
|
"compatibility_date": "2026-02-13",
|
|
// Files in public/ are served without running the worker (free, unlimited and not counted toward the 100,000 requests
|
|
// a day), including the images scripts/promote.js adds before each deploy. robots.txt differs on free.*, so the
|
|
// worker answers it.
|
|
"assets": { "directory": "public", "binding": "ASSETS", "run_worker_first": ["/robots.txt"] },
|
|
"r2_buckets": [{ "binding": "R2_IMAGES", "bucket_name": "direct-img-store" }],
|
|
"kv_namespaces": [{ "binding": "DIRECT_IMG_CACHE", "id": "3d7301ab34db464cb568f31cbea7ce8c" }],
|
|
"vars": { "GOATCOUNTER_URL": "https://direct-img.goatcounter.com" },
|
|
// Each hostname has a proxied placeholder DNS record (AAAA 100::), since the worker answers everything itself
|
|
"routes": [
|
|
{ "pattern": "direct-img.link/*", "zone_name": "direct-img.link" },
|
|
{ "pattern": "free.direct-img.link/*", "zone_name": "direct-img.link" },
|
|
{ "pattern": "ai.direct-img.link/*", "zone_name": "direct-img.link" }
|
|
],
|
|
"workers_dev": false,
|
|
"preview_urls": false
|
|
}
|