Astro static
Copy it into a new project:
pnpm dlx degit antstanley/blogwright/examples/astro-static my-siteA stock Astro site with static output - the shape Blogwright’s defaults are built for. Nothing to configure beyond region and siteName.
| Framework | Mode | Blogwright config | Source |
|---|---|---|---|
| Astro | Static site | defaults | examples/astro-static |
Deploy it
Section titled “Deploy it”-
Copy the example and start a repository:
Terminal window pnpm dlx degit antstanley/blogwright/examples/astro-static my-sitecd my-site && git init -
Set
siteNameandregioninconfig/production.jsonc. -
Add Blogwright, then commit everything, including
pnpm-lock.yaml- the builder installs with--frozen-lockfile:Terminal window pnpm add -D blogwrightgit add -A && git commit -m "Start from the blogwright example" -
Create the infrastructure:
pnpm exec blogwright bootstrap -
Build and publish:
pnpm exec blogwright deploy
What matters
Section titled “What matters”astro.config.mjs- static output, the default. Astro writes/aboutasdist/about/index.html, which is what Blogwright’s router resolves/aboutto.src/pages/404.astro- becomesdist/404.html, the page the distribution answers misses with.config/production.jsonc- onlyregionandsiteName. The defaultpaths.dist(dist) already matches.
The files
Section titled “The files”// Blogwright config for this example. Paths are relative to the repository// root, so they assume this directory IS the repository - see README.md.// The defaults (paths.dist "dist") already match a stock Astro project.{ "region": "us-east-1", "siteName": "astro-static",}import { defineConfig } from 'astro/config';
// Static output (the default) writes /about as dist/about/index.html, which is// what Blogwright's router resolves /about to.export default defineConfig({ site: 'https://example.com',});{ "name": "blogwright-example-astro-static", "private": true, "type": "module", "packageManager": "pnpm@11.25.0", "scripts": { "dev": "astro dev", "build": "astro build", "preview": "astro preview" }, "devDependencies": { "astro": "^7.3.8" }}Related pages
Section titled “Related pages”- Deploying - the full recipe and its options
- Examples overview - every example, and the conventions they share