mcpField
S
svelte-deployment

svelte-deployment

github.com/spences10Cloud & DevOps1680 installsUpdated 15w ago
Repository

About svelte-deployment

A deployment and configuration guidance skill for Svelte and SvelteKit projects, aimed at application developers and Svelte package authors. It covers adapter choices, Vite configuration, pnpm preparation scripts, and deployment notes such as streaming behavior.

Key features

  1. 01Show SvelteKit and Vite configuration examples
  2. 02Describe static, Node, and Cloudflare adapters
  3. 03Explain pnpm 10+ prepare script setup
  4. 04Note Cloudflare streaming issues
  5. 05Provide package publishing and PWA reference topics

Use cases

  1. 01Choose a deployment adapter for a SvelteKit project
  2. 02Configure a project using pnpm 10+
  3. 03Investigate streaming issues in Cloudflare deployments

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/spences10/skills --skill svelte-deployment

After installing, type/svelte-deploymentin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
cloudflare-gotchas.md
library-authoring.md
pwa-setup.md

Details

From the project README

Svelte Deployment

Quick Start

SvelteKit config: Prefer putting Kit options in vite.config.ts via sveltekit({ ... }). svelte.config.js is optional in Kit 2 and will not be read by Kit 3.

pnpm 10+: Add prepare script (postinstall disabled by default):

{
	"scripts": {
		"prepare": "svelte-kit sync"
	}
}

Vite config example:

// vite.config.ts
import { sveltekit } from '@sveltejs/kit/vite';
import adapter from '@sveltejs/adapter-vercel';
import { defineConfig } from 'vite';

export default defineConfig({
	plugins: [
		sveltekit({
			adapter: adapter(),
			compilerOptions: { experimental: { async: true } },
			experimental: { remoteFunctions: true }
		})
	]
});

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

Notes

  • Cloudflare may strip Transfer-Encoding: chunked (breaks streaming)
  • Library authors: include svelte in keywords AND peerDependencies
  • Single-file bundle: kit.output.bundleStrategy: 'single'
  • VS Code/svelte-check/SvelteKit can read Kit config from the Vite plugin via @sveltejs/load-config.
  • Last verified: 2026-06-08

Comments

Markdown supported