Astro โ Run and Build
Requirements:
- Node.js 18.14+ (LTS recommended)
Create a new site:
npm create astro@latest my-astro-sitecd my-astro-sitenpm install
Run locally:
npm run dev
Visit http://localhost:4321
Build for production (output to dist/
):
npm run build
Preview the production build:
npm run preview
Deploy dist/
to your static host. Many hosts provide firstโclass Astro adapters or static hosting.