svelte-deployment

Configure SvelteKit adapters for static, Node.js, and Cloudflare deployments.

Updated Oct 14, 2025
One-click install
npx skills add https://github.com/kensleDev/dotfiles --skill svelte-deployment-kensledev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svelte-deployment
Source: https://github.com/kensleDev/dotfiles/tree/main/claude/.claude/skills/svelte/svelte-deployment
Command: npx skills add https://github.com/kensleDev/dotfiles --skill svelte-deployment-kensledev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance and configurations for deploying SvelteKit applications efficiently and effectively across various platforms.

Core Features & Use Cases

  • Adapter Configuration: Set up adapters for static sites, Node.js servers, and Cloudflare.
  • Build Optimization: Guidance on Vite configuration and pnpm setup for production builds.
  • Advanced Topics: Covers PWA setup, library authoring, and common deployment gotchas.
  • Use Case: You need to deploy a SvelteKit application to Cloudflare Pages and want to ensure optimal performance and handle potential streaming issues.

Quick Start

Ensure your pnpm version is 10+ and add the prepare script to your package.json.

Frequently Asked Questions about svelte-deployment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a SvelteKit app to Cloudflare Pages?

To deploy a SvelteKit app to Cloudflare Pages, configure the appropriate adapter and optimize Vite settings to handle potential streaming issues for production-ready performance.

What Vite and pnpm setup do I need for SvelteKit production builds?

SvelteKit production builds require a pnpm version of 10+ with a prepare script added to package.json, alongside Vite configuration optimization for efficient deployment.

Can I set up a PWA in SvelteKit during deployment?

Yes, you can set up a PWA in SvelteKit during deployment by configuring adapter settings and build optimizations to address common integration gotchas.

Which SvelteKit adapter should I use for static sites versus Node.js servers?

SvelteKit adapter configuration supports static sites and Node.js servers, allowing you to select the appropriate deployment target based on your application requirements.

Why does my SvelteKit deployment fail with streaming issues on Cloudflare?

SvelteKit deployment on Cloudflare can encounter streaming issues, which require specific adapter configurations and Vite build optimizations to resolve for stable production hosting.

Does the SvelteKit deployment process cover library authoring?

Yes, the SvelteKit deployment process includes guidance on library authoring, addressing common deployment gotchas and advanced scenarios for production-ready projects.