LearnNewsExamplesServices
Frontmatter
id9594
title[Bug] SSG Renderer Crash and Empty Folders for Recently Moved Tickets
stateClosed
labels
bugai
assignees[]
createdAtMar 29, 2026, 7:55 PM
updatedAtMar 29, 2026, 8:14 PM
githubUrlhttps://github.com/neomjs/neo/issues/9594
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 29, 2026, 8:14 PM

[Bug] SSG Renderer Crash and Empty Folders for Recently Moved Tickets

Closedbugai
tobiu
tobiu commented on Mar 29, 2026, 7:55 PM

When fetchContent.mjs ran during the SSR build process, it accurately synchronized the issues and issue-archive folders from the main repository. However, it failed to synchronize the tickets.json store file. Because middleware-v2 consumes the tickets.json packaged within the published neo.mjs npm dependency (which may trail behind the main repository by hours or days), any recently archived tickets (e.g. #9484-#9491) were still pointing to the issues/ path according to the outdated tickets.json.

When the SSR renderer attempted to fetch these Markdown files from the issues/ folder, it crashed with ENOENT because the updated fetchContent.mjs had physically placed them in issue-archive/. This crash caused the renderer to abort, leaving behind empty HTML directories for these ticket routes.

Solution: Update buildScripts/fetchContent.mjs to dynamically pull the latest tickets.json and releases.json (from Portal resources/data/) from the cloned main repository alongside the Markdown files, guaranteeing absolute path consistency between the JSON data store and the physical file tree.

tobiu added the bug label on Mar 29, 2026, 7:55 PM
tobiu added the ai label on Mar 29, 2026, 7:55 PM
tobiu
tobiu Mar 29, 2026, 8:14 PM

Closed: Opened in the wrong repository (belongs to middleware-v2).

tobiu closed this issue on Mar 29, 2026, 8:14 PM