mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-16 10:32:10 +00:00
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:
+1
-1
@@ -10,7 +10,7 @@ const config = {
|
||||
preprocess: vitePreprocess(),
|
||||
|
||||
kit: {
|
||||
// Netlify by default, or the node adapter when NODE_ADAPTER=true. See adapter.mjs.
|
||||
// Netlify by default; DEPLOY_TARGET selects the Cloudflare preview or Node test build.
|
||||
adapter,
|
||||
serviceWorker: {
|
||||
// VitePWA owns registration. Registering here as well requests SvelteKit's default
|
||||
|
||||
Reference in New Issue
Block a user