Explore and set up distribution options so the project can be shipped as a static bundle, Docker image, or deployed to edge functions depending on the target environment.

Options to evaluate

  • Static build — current default via @sveltejs/adapter-static, outputs to build/
  • Docker — containerized build for self-hosting (Nginx/Caddy serving static files, or Node server)
  • Edge functions — Cloudflare Pages, Vercel Edge, Netlify Edge
  • Node server@sveltejs/adapter-node for traditional server deployment

Tasks

  • Document current static adapter setup and its limitations
  • Add a Dockerfile for static build serving (Nginx or Caddy)
  • Evaluate edge deployment adapters (Cloudflare, Vercel, Netlify)
  • Consider multi-adapter setup for different deployment targets
  • Add build scripts or profiles for each distribution option

Deploy anywhere

Multiple distribution targets

A static site template built with SvelteKit.

Sveleton, 2025