Deploying your varsha site
A step-by-step guide to deploying your varsha website to Vercel, Netlify, Cloudflare Pages, or any static host.
Deploying your varsha site
One of varsha’s core goals is zero-friction deployment. Since the output is pure static HTML, you can deploy to virtually any hosting provider. Here’s how to deploy to the most common platforms.
Before you deploy
Make sure you’ve updated your site metadata in astro.config.mjs:
site: Your production URL (e.g.,https://yourdomain.com)title: Your site namedescription: A brief description for SEO- Social links (GitHub, Instagram, etc.)
Also run a production build locally to catch any errors:
npm run buildThe static output will be in the dist/ directory.
Vercel (recommended)
varsha generates pure static HTML, so no server adapter is needed. The easiest way to deploy:
- Push your repo to GitHub
- Go to vercel.com and click “Add New Project”
- Select your repository
- Vercel auto-detects Astro — no configuration needed
- Click “Deploy”
Alternatively, use the Vercel CLI:
npm i -g vercelvercelNetlify
- Push your repo to GitHub
- Go to netlify.com and click “Add new site”
- Select your repo
- Build command:
npm run build - Publish directory:
dist - Click “Deploy”
Or use the Netlify CLI:
npm i -g netlify-clinetlify deploy --prod --dir=distCloudflare Pages
- Push your repo to GitHub
- Go to the Cloudflare dashboard → Pages → “Create a project”
- Select your repo
- Framework preset: Astro
- Build command:
npm run build - Build output directory:
dist - Click “Save and Deploy”
GitHub Pages
Add this to your astro.config.mjs (replace vite config with GitHub Pages base path):
export default defineConfig({ site: 'https://yourusername.github.io', base: '/your-repo-name/', // ... rest of config});Then enable GitHub Pages in your repository settings, using GitHub Actions for deployment.
Any static host
Since the output is pure HTML/CSS/JS in dist/, you can deploy to any static host:
- FTP/SFTP: Upload the contents of
dist/to your web root - S3/CloudFront: Sync
dist/to an S3 bucket with static website hosting - Nginx/Apache: Serve
dist/as your web root - Render, Railway, Fly.io: All support static sites from the
dist/directory
Custom domain
Once deployed, point your custom domain at your host. Add your domain to the site field in astro.config.mjs for correct sitemap and OG URLs:
site: 'https://yourdomain.com',Redeploy after making this change.
Need help?
- Read the deployment docs for detailed guides
- Check the troubleshooting page for common issues
- See founder.myndlabs.tech for a live deployed example
- DM us @yethikrishnar on Instagram