ADR 0002 picks proposal 02 "Bottega"; ADR 0003 picks Astro static, hosting still open. Update runbooks, module map and CLAUDE.md commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
ADR 0003: Build the site with Astro as a static site
Status
Accepted (2026-10-26)
Context
The new site is a small, content-driven brochure site (≈10–15 pages) whose main goal is local SEO and visibility in AI answers (GEO/AEO). It needs full control over HTML, meta tags and structured data, very fast pages on mobile, and shared layout/components (header, footer, hours, schema) without repeating them by hand. There is no need for user accounts or server-side logic.
Options considered: Astro (static), plain hand-written HTML/CSS, WordPress.
Decision
Use Astro in static output mode (output: "static"):
- Pages in
src/pages/, shared pieces insrc/layouts/andsrc/components/ - Business data (name, address, phone, hours, services) kept in one place (
src/data/) and reused by pages and JSON-LD - No client-side framework; small inline scripts only where needed (e.g. "open now" status)
- Fonts and images self-hosted for performance once the design is final
Hosting is not decided yet: the build output (dist/) is plain static files and can be served by nginx, Netlify, Vercel or similar. A separate ADR will record the choice before launch.
Consequences
- Developers need Node.js (see
docs/runbooks/local-dev.md) - Content changes go through the repository (no admin panel); if the client later needs self-editing, a headless CMS can be added on top
- Plain HTML output keeps SEO and performance under our control and makes hosting interchangeable