On this page
Invalid value for getStaticPaths route parameter.
GetStaticPathsInvalidRouteParam: Invalid getStaticPaths route parameter for
KEY
. Expected undefined, a string or a number, receivedVALUE_TYPE
(VALUE
)
What went wrong?
Since params
are encoded into the URL, only certain types are supported as values.
/route/[id].astro
In routes using rest parameters, undefined
can be used to represent a path with no parameters passed in the URL:
/route/[...id].astro
See Also:
© 2021 Fred K. Schott
Licensed under the MIT License.
https://docs.astro.build/en/reference/errors/get-static-paths-invalid-route-param/