Wiki Content Bundle Pipeline
Vercel deploys cannot read parent
../wikiat runtime when Root Directory isui; prebuild copies markdown into the serverless bundle. Source: ui/README.md; ui/scripts/bundle-wiki.mjs; AGENTS.md Indexing section
Problem
Serverless functions only see files inside the traced deployment bundle. The wiki source of truth lives adjacent to ui/, not inside it. Source: ui/README.md
Pipeline
prebuildinvokesscripts/bundle-wiki.mjs.- Script copies
../wikitoui/.content/wiki. next.config.tssetsoutputFileTracingIncludesfor.content/**/*.- Runtime default
WIKI_DIRpoints at bundled copy unless overridden.
Local vs production
| Environment | Wiki path |
|---|---|
| Local dev | Filesystem ../wiki at request time |
| Vercel | .content/wiki inside ui bundle |
Optional WIKI_DIR env overrides both. Source: ui/README.md
Maintenance coupling
Agent edits land in wiki/ at repo root. Production UI updates only after rebuild/redeploy triggers bundle copy. Index rebuild (npx tsx scripts/build-index.ts) and qmd embed remain separate from UI bundle but should run before deploy when search metadata changes. Source: AGENTS.md Indexing section; ui/README.md
Related systems
Schema Compiler and build-index regenerate _index.md and _backlinks.json in source wiki; bundle step ships whatever is current at build time.
Architecture Position
| Axis | Value |
|---|---|
| Family | Memory, context, and retrieval |
| Boundary owned | Build-time content bundle from flat markdown into the UI deployable. |
| Read with | Kevin Wiki UI Architecture, Generated Surface Contract, QMD Embed Workflow |
| Use this page when | changing wiki UI deployment or content bundling |
Timeline
-
2026-07-01 | Architecture category refresh added this page to the Memory, context, and retrieval family, linked it to Architecture System Map, and kept it standalone because it owns this boundary: Build-time content bundle from flat markdown into the UI deployable. Source: User request, 2026-07-01
-
2026-05-31 | Bundle pipeline documented in ui/README.md. Source: ui/README.md
-
2026-05-31 | Architecture page compiled. Source: compiled from wiki graph