Skip to content

fix(validate): fail on a page file beside a directory of the same name - #102

Merged
a-essawy merged 1 commit into
mainfrom
fix/guard-page-dir-collision
Sep 24, 2026
Merged

a-essawy merged 1 commit into
mainfrom
fix/guard-page-dir-collision

Conversation

@a-essawy

Copy link
Copy Markdown
Contributor

The shape that broke /docs/jobs/compose/* in production on 2026-09-24: jobs/compose.mdx beside jobs/compose/. All 24 children served the parent's content. The sitemap and llms.txt listed them, so the build saw them; only the routing collapsed, and mint dev does not reproduce it, so nothing caught it before the live site.

The validator now fails on that shape and names the fix (<dir>/index.mdx, as storage/ and automation/ already do).

Verified it fires: recreating jobs/compose.mdx makes validate:nav report the violation, and removing it goes back to clean. A check that cannot fail is worse than no check.

Loading
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