Organize Distribution Options
1 minute read
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 tobuild/ - 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-nodefor 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
Read next