Deploy with GitHub + Vercel (Recommended)
Use GitHub for source control and Vercel for automated build & deploy (env vars + common pitfalls).
views
| comments
1. Why GitHub + Vercel#
- Preview deployments for every PR
- Push-to-deploy
- HTTPS + CDN out of the box
Reference walkthrough: Website on Vercel ↗
2. Preflight Checklist#
Make sure it builds locally:
pnpm install
pnpm buildbashSet your domain (at least the main domain):
src/site.config.ts→theme.personal.domains.main
3. Vercel Notes#
This theme reads DEPLOYMENT_PLATFORM to pick adapter/output:
vercel(default): Vercel adapter, usuallyserveroutputgithub: GitHub Pages,staticoutputcloudflare: Cloudflare Pages,staticoutput
On Vercel, set:
DEPLOYMENT_PLATFORM=verceltxtBuild command:
pnpm buildtxtKeep the output directory setting as default (Astro is handled by the adapter).
4. Static Output (Optional)#
If you need a fully static site (e.g. GitHub Pages), set:
DEPLOYMENT_PLATFORM=githubtxtand deploy the dist/ output.