Astro

Documentation

Quickstart

Installation

npm create --yes astro@latest

Configuration

Use the default rendering mode output: 'static' to prerender the entire site.

Update your site metadata in astro.config.mjs (e.g. site).

Be aware of your trailingSlash configuration.

The docs explain how to use getStaticPaths with dynamic routes (e.g. [id].astro) for Static (SSG) Mode.

Static (SSG) Mode supports Static File Endpoints, Middleware, and Content Collections too.

Deployment

Build

npm run build

Preview

npx --yes serve@latest dist

Deploy

npx --yes bunny-launcher@latest --interactive