You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This needs further investigation to diagnose the cause of the problem, but seems like there is some weird interaction when both middleware rewrite and next.config.js rewrite are used where Next's client router is not setting router.query to match expected dynamic segments
Data
The following is parsed automatically by the Next.js repo e2e test report generator.
test: Middleware Rewrite should handle catch-all rewrite correctly, Middleware Rewrite should handle static rewrite from next.config.js correctly, Middleware Rewrite should opt out of prefetch caching for dynamic routes
reason: Middleware rewrites for dynamic routes not setting query/params in router
The text was updated successfully, but these errors were encountered:
I don't have any rewrites in next.config.js but I still have the problem of missing query params in the page component after request being rewritten with NextResponse.rewrite in middleware. Works on local.
This needs further investigation to diagnose the cause of the problem, but seems like there is some weird interaction when both middleware rewrite and next.config.js rewrite are used where Next's client router is not setting
router.query
to match expected dynamic segmentsData
The following is parsed automatically by the Next.js repo e2e test report generator.
test: Middleware Rewrite should handle catch-all rewrite correctly, Middleware Rewrite should handle static rewrite from next.config.js correctly, Middleware Rewrite should opt out of prefetch caching for dynamic routes
reason: Middleware rewrites for dynamic routes not setting query/params in router
The text was updated successfully, but these errors were encountered: