medium95%
Route export validation rejects string literal union params in layouts and pages
Next.js generated ParamMap widens dynamic segment values to string, ignoring the return type of generateStaticParams even when dynamicParams is false. This causes components (layouts/pages) that declare narrower types such as 'en' | 'de' to fail type validation during build, despite correct runtime behavior.
