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
Option 1: GitHub Integration (Recommended)
-
Push your code to GitHub
Ensure your project is in a GitHub repository.
-
Import to Vercel
Go to vercel.com/new and import your GitHub repository.
-
Configure Build Settings
Vercel should auto-detect Astro. If not, use:
- Framework Preset: Astro
- Build Command:
pnpm run build - Output Directory:
dist
-
Deploy
Click “Deploy” and wait for the build to complete.
Option 2: CLI Deployment
-
Login to Vercel
Terminal npx vercel login -
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.