Guide

Vercel Deployment

Deploy your AstroGlass site to Vercel.

AstroGlass can be deployed to Vercel with minimal configuration.

Prerequisites

  • A Vercel account.
  • Node.js v20+ installed locally.
  • Vercel CLI installed (npm install -g vercel).

Deployment Methods

  1. Push your code to GitHub

    Ensure your project is in a GitHub repository.

  2. Import to Vercel

    Go to vercel.com/new and import your GitHub repository.

  3. Configure Build Settings

    Vercel should auto-detect Astro. If not, use:

    • Framework Preset: Astro
    • Build Command: pnpm run build
    • Output Directory: dist
  4. Deploy

    Click “Deploy” and wait for the build to complete.

Option 2: CLI Deployment

  1. Login to Vercel

    Terminal
    npx vercel login
  2. Deploy

    Terminal
    pnpm run deploy:vercel
ℹ️
Search Index

The search index is generated automatically during pnpm run build. Ensure the build step completes successfully for search to work on the deployed site.