Vercel
Deploy your Dustavez site to Vercel with automatic preview deploys for every branch.
Vercel is the simplest way to deploy Dustavez. It automatically detects Astro projects, builds on every push, and creates preview deployments for pull requests.
Setup
Push your project to GitHub
Ensure your Dustavez project is in a GitHub repository. Vercel connects directly to your repo.
Import in Vercel
Go to vercel.com, click “Add New Project”, and import your GitHub repository. Vercel auto-detects the Astro framework.
Deploy
Click “Deploy”. Vercel runs npm run build and serves the dist/ output. Your site is live in under a minute.
Configuration
No special configuration is needed. Vercel detects astro.config.ts and sets the correct build command and output directory automatically.
If you need to customize, create a vercel.json in your project root:
{ "buildCommand": "npm run build", "outputDirectory": "dist"}Preview deployments
Every pull request automatically receives a preview deployment at a unique URL. This lets reviewers see documentation changes rendered exactly as they’ll appear in production — no need to run the build locally.
Vercel creates a deployment for every branch push, not just pull requests. Use this to share work-in-progress documentation with teammates before opening a PR.
Custom domain
In the Vercel dashboard, go to your project’s Settings, then Domains. Add your custom domain and update your DNS records. Vercel automatically provisions an SSL certificate.
Update the site field in astro.config.ts to match your custom domain:
export default defineConfig({ site: 'https://docs.yourcompany.com', // ...})