Skip to content

fix(build): ship the Longmont directory file with the server build - #434

Merged
scottconverse merged 1 commit into
mainfrom
fix/seed-fixture-in-build
Nov 23, 2026
Merged

scottconverse merged 1 commit into
mainfrom
fix/seed-fixture-in-build

Conversation

@scottconverse

Copy link
Copy Markdown
Owner

The registry seed loader resolves its JSON with new URL(..., import.meta.url), but the bundler splits that module into chunks and __fixtures__ was never next to them — so the loader reported "file absent" and live served 15 fallback entries instead of the 151 services in the file.

scripts/copy-runtime-assets.mjs now scans every built .mjs under .output/server (and the Vercel functions dir when present), skipping node_modules, and copies the seed JSON into __fixtures__ beside each chunk that references it. A missing source or zero referencing chunks warns and fails the build instead of skipping silently.

Tests: node --test scripts/copy-runtime-assets.test.mjs — 3 pass, 0 fail.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T21:18:43.114273Z 23adab3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@scottconverse
scottconverse merged commit b0a12f8 into main Nov 23, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant