Deployment
Deploy your Nebula theme to production with Vercel, Netlify, or other platforms.
Build for Production
Before deploying, build your site:
pnpm build
This creates an optimized production build in the dist/ folder.
Vercel
Automatic Deployment
- Push your code to GitHub
- Import your repository on Vercel
- Vercel auto-detects Astro and configures the build
Manual Deployment
pnpm add -D vercel
npx vercel
Netlify
Automatic Deployment
- Push your code to GitHub
- Import your repository on Netlify
- Set build command:
pnpm build - Set publish directory:
dist
Manual Deployment
pnpm add -D netlify-cli
npx netlify deploy --build --prod
Cloudflare Pages
- Connect your GitHub repository
- Set build command:
pnpm build - Set build output directory:
dist
Environment Variables
Remember to set your environment variables in your hosting platform:
| Variable | Description |
|---|---|
PUBLIC_SITE_URL | Your production URL |
PUBLIC_GA_ID | Google Analytics ID (optional) |
Post-Deployment Checklist
- Verify all pages load correctly
- Test dark/light mode toggle
- Check language switcher
- Validate sitemap at
/sitemap-index.xml - Test contact form submission
- Run Lighthouse audit