mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-02 15:24:17 +00:00
1 KiB
1 KiB
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. - Do not run
bun typecheck,bun run build, or another Astro process while the dev server is running. They share the Vite dependency cache and can break the active dev server. Leave validation to the user when the dev server is active.
Validation
- Run
bun typecheck,bun run check:generated, andbun run buildfrom this package after changes. - Treat validation and build errors as blockers.