There are two /docs and the two runtimes disagree about which one is real.
- Dev (
bun scripts/dev.ts) proxies/docsto the BunPress site unconditionally. - Prod —
buddy serve, the only thing serving the site perDEPLOY.md— has no/docsbranch at all, so it resolvesresources/views/docs.stx.
So production has already chosen, and it chose the file that is unreachable locally.
Meanwhile the BunPress site is 100% stock Stacks framework documentation: 0 of its 198 markdown files mention analyticshq, config/docs.ts sets the title to "Stacks Documentation", and the sitemap points at stacksjs.com/docs.
Today's cost
Every local check of /docs shows the wrong product, so the page that actually ships is the one nobody ever looks at — inverted QA. It also forces 9 data-no-router anchors that are justified by a dev-only truth.
Recommendation
Delete docs/ and config/docs.ts, and drop the docs proxy from scripts/dev.ts. Dev then matches prod, ~80MB goes away, and the 9 anchors become StxLinks.
The alternative is committing to BunPress, which means rewriting 198 files and adding a /docs branch to buddy serve. Not obviously worth it for a product whose docs are one page today.
Before deleting
Confirm nothing else imports config/docs.ts and that no deploy step builds docs/.