Skip to content

fix(build): trace YAML spec dirs so Vercel ships latest dev specs - #634

Merged
Flotapponnier merged 1 commit into
devfrom
fix/next-include-benchmarks-in-bundle
Jun 22, 2026
Merged

fix(build): trace YAML spec dirs so Vercel ships latest dev specs#634
Flotapponnier merged 1 commit into
devfrom
fix/next-include-benchmarks-in-bundle

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Add outputFileTracingIncludes to next.config.ts so the file tracer picks up YAML files outside src on every Vercel build. Specs in benchmarks, answers, alternatives are read at runtime via fs.readFile relative to process.cwd. Without this hint Next's default tracer only follows static imports so those YAML files were not making it into the prebuilt deployment artifact and the deployed page kept serving an old snapshot of pm-api-latency.yml that missed PR 606 (Mobula, Predexon, Codex aggregator providers + source=direct selectors). After this fix every deploy ships the dev HEAD of each spec.

@Flotapponnier
Flotapponnier merged commit b701476 into dev Jun 22, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the fix/next-include-benchmarks-in-bundle branch June 22, 2026 14:29
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