Next.js Discord

Discord Forum

router.query is always empty even after router.isReady for a dynamic page router

Unanswered
Dwarf Crocodile posted this in #help-forum
Open in Discord
Dwarf CrocodileOP
The router.isReady is true and the router.asPath has correct value, but. the router.query is always empty object for an particular dynamic router.

- I'm using Next.js page router. It happens for both 15.5.9 with webpack and 16.2.3 turbopack
- It only happens when deploy to the vercel . No problem in my local machine in either dev or production build.

1 Reply