Vercel Deployment

Flux Theme is pre-configured for Vercel. The @astrojs/vercel adapter is already installed and astro.config.mjs is set to output: 'server'. Push to GitHub, import the repo on Vercel, and your site deploys in under a minute with free SSL, preview URLs on every branch, and edge-cached assets.

Astro Config — Already Set Up

Flux uses Astro's server output mode so API routes, Clerk auth middleware, and Stripe webhooks all work at runtime. The vercel adapter is already wired in — you don't need to change anything here.

astro.config.mjs

Import & Deploy on Vercel

Go to vercel.com → Add New Project → Import your GitHub repo. Vercel auto-detects Astro and sets the build command and output directory correctly. Hit Deploy.

Terminal

Environment Variables

Copy every key from your local .env into Vercel Dashboard → Project → Settings → Environment Variables. Flux uses all of these across its integrations — missing a key will cause runtime errors.

.env

Deploy & Redeploy from CLI

Use the Vercel CLI to deploy without pushing to git. Useful for testing a hotfix or sharing a preview before merging.

Terminal