Skip to content

Deployment

Velocity works out of the box with major hosting platforms.

Vercel

Recommended. Zero-config deployment with edge functions.

Netlify

Great for static sites with serverless functions.

Cloudflare Pages

Global edge network with Workers support.

  1. Set SITE_URL in your environment
  2. Run pnpm build locally to catch errors
  3. Test with pnpm preview

Velocity builds to static files by default:

Terminal window
pnpm build
# Output in dist/

For server-side features, configure an adapter in astro.config.mjs.

Set these on your hosting platform:

VariableRequiredDescription
SITE_URLYesYour production domain
PUBLIC_GA_MEASUREMENT_IDNoGoogle Analytics ID
PUBLIC_GTM_IDNoGoogle Tag Manager ID