About svelte-deployment
A deployment reference skill for Svelte developers, covering adapter selection and common setup details for static sites, Node servers, and Cloudflare.
Key features
- 01Static, Node, and Cloudflare adapter setup
- 02pnpm 10+ prepare script guidance
- 03Vite 7 package pairing
- 04PWA and package publishing references
Use cases
- 01Choosing a SvelteKit adapter for a deployment target
- 02Checking setup steps for pnpm 10+
- 03Reviewing Cloudflare streaming caveats
- 04Preparing a Svelte package for publishing
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ spences10/ svelte-skills-kit --skill svelte-deploymentAfter installing, type/svelte-deploymentin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/cloudflare-gotchas.mdlibrary-authoring.mdpwa-setup.mdDetails
From the project READMESvelte Deployment
Quick Start
pnpm 10+: Add prepare script (postinstall disabled by default):
{
"scripts": {
"prepare": "svelte-kit sync"
}
}
Vite 7: Update both packages together:
pnpm add -D vite@7 @sveltejs/vite-plugin-svelte@6
Adapters
# Static site
pnpm add -D @sveltejs/adapter-static
# Node server
pnpm add -D @sveltejs/adapter-node
# Cloudflare
pnpm add -D @sveltejs/adapter-cloudflare
Reference Files
- library-authoring.md - Publishing Svelte packages
- pwa-setup.md - Offline-first with workbox
- cloudflare-gotchas.md - Streaming issues
Notes
- Cloudflare may strip
Transfer-Encoding: chunked(breaks streaming) - Library authors: include
sveltein keywords AND peerDependencies - Single-file bundle:
kit.output.bundleStrategy: 'single' - Last verified: 2025-01-14
Comments
Markdown supported