Demo app for catch-all routing and a query string param
A demo app to explore if ctx.asPath
contains ?catchAll=...
param for the [catchAll].js
page component during SSR, which we're seeing in one internal project.
Currently, I cannot reproduce it in a plain Next.js app but this should be the repro:
yarn dev
localhost:3000/xyz
, see that asPath
is /xyz
.yarn build
and yarn start
.localhost:3000/xyz
again, see that asPath
is /xyz?catchAll=xyz
.