Unverified Commit 9bd5169d authored by Shu Ding's avatar Shu Ding Committed by GitHub

Fix `dynamicParams` check in TS plugin (#52211)

Add the missing `isValid` check.

Fix NEXT-1214, fix #49489.
parent 220377e3
...@@ -116,6 +116,9 @@ const API_DOCS: Record< ...@@ -116,6 +116,9 @@ const API_DOCS: Record<
'Disallow rendering dynamic params that are not generated by `generateStaticParams`.', 'Disallow rendering dynamic params that are not generated by `generateStaticParams`.',
}, },
link: 'https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams', link: 'https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams',
isValid: (value: string) => {
return value === 'true' || value === 'false'
},
}, },
runtime: { runtime: {
description: description:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment