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:
- Start the app via
yarn dev
- Visit
localhost:3000/xyz
, see thatasPath
is/xyz
. - Stop the app, run
yarn build
andyarn start
. - Visit
localhost:3000/xyz
again, see thatasPath
is/xyz?catchAll=xyz
.