You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ffe36c5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(docs): reject a non-locale first segment at the route level (#209)
generateStaticParams on app/[lang]/layout.tsx already enumerated the seven locales, but nothing consumed that as a constraint. dynamicParams = false makes it one, so a first segment that is not a locale resolves to the prerendered /_not-found route instead of rendering a page under a bogus locale.
Closes the soft-404 family: /foo.bar/privacy and /foo.bar/terms answered 200, /foo.bar and /favicon.ico answered 307 into the docs route. All now serve a document byte-identical to /no-such-page (sha256 fa59d702...), verified against a running build with script bodies stripped.
The 500 the card reported was already fixed incidentally by 6653744 and did not reproduce.
notFound() in the layout was measured and rejected: it answers 404 with a 594-byte empty error shell and no 404 copy, because these URLs are dynamically rendered by construction.
Prerender count 996/996 unchanged; the dotted machine-facing routes (llms.txt, llms-full.txt, sitemap.xml, robots.txt, .mdx) confirmed untouched.
Closes#180
0 commit comments