# SvelteKit

Deploy SvelteKit on Render with this template. Get started quickly by forking this repo or creating your own SvelteKit project from scratch.

- Repository: https://github.com/render-examples/sveltekit
- Stack: javascript, nodejs, typescript
- Tags: full-stack, ssr
- URL: https://render.com/templates/sveltekit

## Why deploy SvelteKit on Render?

SvelteKit is a full-stack web application framework built on top of Svelte. It provides routing, server-side rendering, and build tooling out of the box, letting developers build production-ready web apps without assembling separate tools for each concern.

This template gives you a production-ready SvelteKit app with the Node adapter already configured and build commands set up correctly—skipping the manual work of configuring SSR deployment settings. One click and you have a working SvelteKit service on Render, with automatic deploys from Git on every push. You avoid the common gotchas of deploying SvelteKit to a Node environment, like adapter configuration and build output handling, which are already wired up here.

## What you can build

After deploying, you'll have a production-ready SvelteKit application running as a Node.js service with a public URL. You can use this as a starting point for building full-stack web apps with server-side rendering, API routes, and static page generation. Fork the repo and start modifying it to build your own project.

## Key features

- *SvelteKit Starter Setup*: Pre-configured SvelteKit application scaffolded with create-svelte, ready for immediate development.
- *Node.js Adapter Config*: Includes modifications for deploying as a Node.js service rather than static/serverless output.
- *Render One-Click Deploy*: Deploy button and configuration for instant deployment to Render's hosting platform.
- *Standard Dev Workflow*: Supports npm, pnpm, and yarn with hot-reload dev server and production build scripts.

## Use cases

- Frontend developer deploys interactive portfolio site to Render quickly
- Startup founder prototypes MVP web app with server-side rendering
- Agency developer creates client dashboard with fast initial page loads
- Solo maker launches SaaS landing page with built-in API routes

## What's included

| Service | Type | Purpose |
|---------|------|---------|
| sveltekit | Web Service | Application service |

## Next steps

1. Open your Render service URL in a browser — You should see the default SvelteKit welcome page with the Svelte logo and links to documentation
2. Test client-side navigation by clicking the 'About' or other navigation links on the page — The page should transition smoothly without a full browser refresh, confirming SvelteKit's client-side routing is working
3. Configure a custom domain in your Render dashboard under Settings > Custom Domains — After DNS propagation, visiting your domain should display the same SvelteKit app with a valid SSL certificate

## Resources

- [SvelteKit official site](https://kit.svelte.dev)
