mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-10-14 10:29:56 +08:00
The site is deployed behind an upstream router that forwards only `/` and `/docs/`. The homepage export also claimed /_next/, /brand/, /brands/, /product/, /favicon.ico and Next's root RSC payloads, so behind that router the page loaded without its scripts, styles or images. Next's assetPrefix and the homepage's public assets now live under /docs/_home/ (one `homeAssets` constant shared with the docs header), the favicon reuses /docs/favicon.ico, and build-site.mjs leaves only index.html, 404.html and docs/ at the root. The homepage logo links are plain anchors because <Link> navigation fetches RSC payloads from the root. check-site.mjs now fails the build if a page references anything outside `/` and `/docs/` or if anything else appears at the site root.