build(cloudflare): add a Cloudflare preview build target

DEPLOY_TARGET now selects the adapter; Netlify stays the default and NODE_ADAPTER
keeps working. Cloudflare compresses in transit, so the Worker build aliases
$lib/server/compression to a pass-through that leaves the streaming body alone.

CI builds and dry-run deploys this target. That is compilation and packaging
coverage only, not a production compatibility gate: native sharp still blocks the
share-preview route in the Worker runtime.
This commit is contained in:
Josh Creek
2026-09-15 17:47:14 +01:00
parent b2b750115f
commit 2766e5ea67
11 changed files with 1629 additions and 39 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "livingdextracker-preview",
"main": ".svelte-kit/cloudflare/_worker.js",
"compatibility_date": "2026-09-15",
"compatibility_flags": ["nodejs_compat"],
"assets": {
"directory": ".svelte-kit/cloudflare",
"binding": "ASSETS"
},
"observability": { "enabled": true },
"vars": { "POKEDEX_PERFORMANCE": "true" }
}