Postmortem: article URLs without exported bodies
On this page
On November 8, 2026, while integrating these bilingual tutorials, we found a mismatch: article pages worked and sitemap URLs existed, but the inventory used for full-text export omitted some article source-file paths. An address existing in one output did not establish that another output included its body.
This is an actual local repair from this project. It concerns the content-export pipeline, not rankings, AI citations or customer growth.
The defect sat between two inventories
The bilingual registry registered Chinese and English paths first. A later content scan supplied article files. Each affected path therefore appeared twice: initially as an address, later with its source file.
The old collector kept only the first occurrence. That deduplicated URLs but discarded later file metadata. A sitemap needed the path and looked correct. The full-text generator also needed the file and could not read the missing body.
| Output | Main dependency | Why checking it alone was insufficient |
|---|---|---|
| Article page | Route and content loading | A working page does not validate another export |
| Sitemap | Canonical URL inventory | Complete addresses do not establish source-file coverage |
| Full-text export | Address and body source | Requires both file records and actual content |
We inspected the collector’s result before blaming AI JavaScript support.
Reproduce with two records before restructuring
This placeholder example isolates the same failure. It is not another real article or a private-file read:
const rows = [
{ path: '/blogs/example' },
{ path: '/blogs/example', file: 'content/example.md' }
];
const entries = new Map();
for (const row of rows) {
if (!entries.has(row.path)) entries.set(row.path, row);
}
console.log(entries.get('/blogs/example').file);
// undefinedOur local regression required published paired articles to retain their content-file records in the real inventory. Before the repair, it failed with undefined. That located the defect in the export entry contract rather than a guess about shorter generated text.
Preserve existing records and accept later metadata
The repair was in collectSitemapEntries() in web/scripts/sitemap-paths.mjs, the inventory shared by the sitemap and llms-full.txt generator. It now merges records for the same path.
entries.set(row.path, {
...entries.get(row.path),
...row
});With this project’s current record shape, the later content record supplies file while preserving path identity. This is not a universal merge policy. Explicit nulls, conflicting meanings or different source priorities require defined rules first.
We did not change public article addresses or treat an export defect as a reason to delete content.
Verify intermediate data and final artifacts
After the repair, we checked paired article source records and rebuilt pages, sitemap and full-text output. The regression passed, and the corresponding bodies were readable in the generated full-text artifact.
Searching only for headlines is insufficient: titles can occur in navigation, metadata or serialized scripts. For HTML, exclude script and style contents before checking body passages. For the full-text file, locate the section by canonical article URL, then verify substantive text near its beginning and end.
Canonical article URL and content file:
Does the collector return the correct file?
Does article HTML contain readable body text?
Does the sitemap include the address and correct language counterparts?
Does full-text output contain this URL and early/late body passages?
Unverified: deployed CDN, external AI retrieval and search outcomesWhat the repair changed
Readers and the full-text entry now reach matching content. Maintainers retain source metadata in the shared inventory rather than introducing a new page list for each output. AI consumers no longer encounter paired addresses without their exported bodies.
The conclusion stops at local implementation and build verification. Deployment retrieval still requires a separate check; use the HTML and AI retrieval investigation. The transferable lesson is to test the fields each output needs, not merely the number of URLs in their shared inventory.