mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-22 08:59:26 -10:00
794 B
794 B
Website guide
Structure
- This is a standard Astro website with a fully owned frontend.
- Only
baseinastro.config.tsshould know the deployment subpath. Useimport.meta.env.BASE_URLeverywhere else. - The documentation feature is self-contained under
src/docs/and renders through the thin route insrc/pages/docs/. - Do not add a documentation frontend framework; this package owns the UI directly.
- Keep the installer route dynamic and
public/openapi.jsongenerated frompackages/protocol/openapi.json.
Local development
- Run
bun devfrom this package and use the local URL printed by Astro.
Validation
- Run
bun typecheck,bun run check:generated, andbun run buildfrom this package after changes. - Treat validation and build errors as blockers.