Vercel
Deploy your Hwaro site to Vercel with zero-config deployments.
Quick Start
Generate Config
hwaro tool platform vercel
This creates a vercel.json with build settings, redirects from aliases, and cache headers.
Deploy via Git
- Push your repository to GitHub, GitLab, or Bitbucket
- Go to Vercel and click Add New > Project
- Import your repository
- Vercel will auto-detect
vercel.jsonsettings - Click Deploy
Manual Configuration
If you prefer to configure manually, create vercel.json:
{
"buildCommand": "hwaro build",
"outputDirectory": "public"
}
Redirects
Page aliases defined in frontmatter are automatically included as 301 redirects when using hwaro tool platform vercel:
---
title: New Post
aliases:
- /old-url/
---
Generates:
{
"redirects": [
{
"source": "/old-url/",
"destination": "/posts/new-post/",
"statusCode": 301
}
]
}
Custom Domain
- Go to Settings > Domains
- Add your custom domain
- Follow DNS configuration instructions
- Update
base_urlinconfig.toml:
base_url = "https://www.yourdomain.com"
Preview Deployments
Vercel automatically creates preview deployments for every push to non-production branches. No additional configuration is needed.
See Also
- Platform Config Generator — Detailed generator options
- CLI Reference — All tool commands
- Other platforms: Netlify | Cloudflare Pages | GitHub Pages