Guide

Netlify Deployment

Deploy your AstroGlass site to Netlify.

AstroGlass can be deployed to Netlify with minimal configuration.

Prerequisites

  • A Netlify account.
  • Node.js v20+ installed locally.
  • Netlify CLI installed (npm install -g netlify-cli).

Deployment Methods

  1. Push your code to GitHub

    Ensure your project is in a GitHub repository.

  2. Import to Netlify

    Go to app.netlify.com > Add new site > Import an existing project.

  3. Configure Build Settings

    Use the following settings:

    • Build Command: pnpm run build
    • Publish Directory: dist
  4. Deploy

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

Option 2: CLI Deployment

  1. Login to Netlify

    Terminal
    npx netlify login
  2. Deploy

    Terminal
    pnpm run deploy:netlify
ℹ️
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.