tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
557 stars 21 forks source link

Support automatic static optimization #123

Closed tatethurston closed 1 year ago

tatethurston commented 1 year ago

During prerendering, the router's query object will be empty since we do not have query information to provide during this phase. After hydration, Next.js will trigger an update to your application to provide the route parameters in the query object.

https://nextjs.org/docs/advanced-features/automatic-static-optimization

tatethurston commented 1 year ago

https://github.com/tatethurston/nextjs-routes/issues/117

tatethurston commented 1 year ago

https://github.com/vercel/next.js/blob/canary/packages/next/src/server/render.tsx#L453-L457