-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
27 lines (23 loc) · 1.05 KB
/
Copy pathwrangler.jsonc
File metadata and controls
27 lines (23 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "hareware",
"compatibility_date": "2026-09-02",
// linkedom and fast-xml-parser both reach for node builtins
"compatibility_flags": ["nodejs_compat"],
/**
* vercel's cdn honoured the cache-control headers the pages set on their own
* responses; cloudflare does not cache a worker's own response unless asked.
* this is the ask — with it, `s-maxage` on / and /email means what it did
* before, and `private, no-store` on /generate and /magazine still opts out
*
* a cache hit skips the worker altogether, which is also what keeps the feed
* pages off wordpress.com's rate limit
*/
"cache": { "enabled": true },
"observability": { "enabled": true },
// what `npm create cloudflare -- --framework=astro` declares. the adapter
// would inject all three, but naming them keeps plain `wrangler` commands
// working against this file on their own
"main": "@astrojs/cloudflare/entrypoints/server",
"assets": { "directory": "./dist", "binding": "ASSETS" },
}