Appearance
Deploy to Vercel
Vercel detects Vite projects automatically and redeploys every time you push. The free Hobby plan is for personal, non-commercial projects; client and business sites belong on a paid Pro plan under Vercel's terms.
Option A: from your GitHub repo (recommended)
You need your site in your own private repo first (how).
Sign in at vercel.com with GitHub.
Click Add New… → Project, then Import next to your repo. If it isn't listed, click Adjust GitHub App Permissions and give Vercel access to it.
Check the settings. Vercel fills them in for Vite:
Setting Value Framework Preset Vite Build Command npm run buildOutput Directory distInstall Command npm installClick Deploy. After about a minute you get a URL like
https://my-site.vercel.app.
From now on, every git push to main updates the live site, and pushes to other branches get their own preview URL.
Set Node.js 22
Open the project → Settings → Build and Deployment (sometimes listed as General) → Node.js Version → choose 22.x, then redeploy. Or add this to package.json, which Vercel respects:
json
"engines": { "node": ">=22" }Option B: with the Vercel CLI (no Git needed)
bash
npm install # if you haven't yet
npx vercel # first time: log in, answer the questions, get a preview URL
npx vercel --prod # publish to productionAccept the detected settings (Vite, npm run build, dist). Run npx vercel --prod again whenever you want to publish changes.
Custom domain
Project → Settings → Domains → Add. Vercel shows the exact DNS records to create at your domain registrar. HTTPS is automatic. See Custom domains & HTTPS.
Common issues
- Build fails with an unsupported Node version: set Node.js 22 as above.
- 404 or blank page: the Output Directory must be
dist. See Blank page after deploy. - Images missing only on Vercel: file names are case-sensitive on Vercel's Linux servers.
Hero.webpandhero.webpare different files there. See Images not showing.