mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
bfabf995db
Keep the public parameter shape consistent while rendering a fallback shell: both [...slug] and [[...slug]] use an array containing the opaque placeholder, rather than changing from an array to a scalar string when the value is unknown. For example, code receiving params.slug must not see a different value shape solely because the build is producing a less-specific shell. The router tree still uses the same serialized segment string. Ordinary dynamic parameters are unchanged. This fix is independent of experimental matching. Update the two existing fallback-shape assertions: both fail before the fix; all 47 getDynamicParam tests and both snapshots pass afterward.