Documentation
Deployment
Ship your dashboard to Vercel, Netlify or any static host.
Overview
| Framework | Output | Good fits |
|---|---|---|
| Next.js | Node server or serverless functions | Vercel, Netlify, any Node host, Docker |
| React | Static files in dist/ | Vercel, Netlify, Cloudflare Pages, S3, any CDN |
| Vue.js | Static files in dist/ | Vercel, Netlify, Cloudflare Pages, S3, any CDN |
| Svelte | Depends on the adapter | Vercel, Netlify, Cloudflare, Node |
Vercel
Vercel detects every framework automatically, so this works for all four versions:
Push your project to GitHub
Use your own repository (see Start your own repository).
Import it on Vercel
In Vercel, click Add New → Project, pick the repository and keep the detected settings. Vercel uses pnpm because of the lockfile.
Add environment variables and deploy
Add any variables you use (for example your analytics key) under Settings → Environment Variables, then deploy. Every push to your main branch deploys again.
Prefer the terminal? The Vercel CLI does the same:
Loading...
Other hosts
Netlify and most platforms support Next.js directly. On your own server, build and start it with Node:
Loading...
SPA routing (React, Vue.js)
React and Vue.js versions are single-page apps: every URL must serve index.html so the router can take over. Without this, refreshing a page like /orders returns a 404. The projects already include a vercel.json for Vercel. On other hosts add the equivalent:
Loading...
Loading...
SvelteKit adapters
Svelte templates use @sveltejs/adapter-auto, which detects Vercel, Netlify and Cloudflare during the build. For a plain Node server, switch to the Node adapter:
Loading...
Loading...
Then run pnpm build and start the server with node build.
Launch checklist
pnpm buildpasses locally without type errors.- Template name, logo, favicon and social image are replaced with yours.
- Demo-only toasts and links back to shadcnadmin.com are removed.
- Environment variables are set on the host for production.
- Sample data is replaced, or clearly marked if you ship a demo.