What is adapter-cloudflare?
The SvelteKit build target that deploys this site to Cloudflare Workers. The adapter maps dynamic routes to workers and static files to assets, with route include and exclude rules controlling what runs at the edge.
Example
The site builds with adapter-cloudflare: dashboard and API routes run as workers while blog, glossary, tools, and marketing pages serve as static files, exactly matching the include and exclude lists in svelte.config.js.
What people get wrong
Reaching for adapter-static on an app with server endpoints silently drops dynamic behavior. Match the adapter to the app: static output for static sites, the Cloudflare adapter when workers serve live routes.
Frequently asked questions
Do excluded routes still deploy?
Yes. Excluded paths still publish as static assets alongside the worker; the exclude list only controls what the worker handles at request time, keeping edge compute focused on dynamic routes.
Related terms
SvelteKit adapter-static
A SvelteKit build target that emits a fully static site with no server runtime. Fully static output fits documentation and marketing pages, but any route needing server logic must switch back to a server adapter.
Cloudflare Worker
Serverless code running on Cloudflare’s edge network, close to visitors worldwide. BYOB deploys generated apps as Workers: no servers to provision, scale, or patch.
One-Click Deployment
Publishing a site to production hosting without manual configuration. BYOB deploys to an edge network with rollback to known commits when a release misbehaves.
SSR Per Request
Fresh HTML rendered on the server for every request, used for personalized or frequently changing pages. Server rendering guarantees complete markup on first paint but costs compute per visit, so reserve it for dynamic routes.
CSR Shell
A minimal HTML shell that renders content in the browser after JavaScript loads. Client rendering suits authenticated dashboards behind login, where SEO matters less and interactivity starts only after scripts execute.
Hydration Cost
The JavaScript work that turns server-rendered HTML into an interactive app. Hydration replays component logic in the browser, so oversized bundles delay input readiness even when paint looks instant.
Sources
Further reading
How BYOB's One-Click Deployment Works: Code to Live in 30 Seconds
BYOB compiles SvelteKit projects, pushes to global CDN, provisions SSL certificates, and gives you a live URL in under 30 seconds. Learn how the deployment pipeline works.
How BYOB's Deployment Pipeline Works: Edge Network, SSL, and CDN
BYOB deploys to a global edge network with servers in 50+ cities. Learn how the infrastructure handles compilation, CDN distribution, SSL provisioning, and serves sites with <100ms latency worldwide.