Skip to content

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

  1. Push your code to GitHub
  2. Import your repository on Vercel
  3. Vercel auto-detects Astro and configures the build

Manual Deployment

pnpm add -D vercel
npx vercel

Netlify

Automatic Deployment

  1. Push your code to GitHub
  2. Import your repository on Netlify
  3. Set build command: pnpm build
  4. Set publish directory: dist

Manual Deployment

pnpm add -D netlify-cli
npx netlify deploy --build --prod

Cloudflare Pages

  1. Connect your GitHub repository
  2. Set build command: pnpm build
  3. Set build output directory: dist

Environment Variables

Remember to set your environment variables in your hosting platform:

VariableDescription
PUBLIC_SITE_URLYour production URL
PUBLIC_GA_IDGoogle 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