tatethurston / nextjs-routes

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

needs update for next 13 #169

Closed statusunknown418 closed 1 year ago

statusunknown418 commented 1 year ago

the router is now also available through next/navigation, plus next includes another function: redirect that also accepts a path and should be typed

tatethurston commented 1 year ago

The API for app router imported from next/navigation is quite a bit different from the pages router. I recommend using next’s route type generation if you’re using next 13.

https://github.com/tatethurston/nextjs-routes/issues/167#issuecomment-1679165749

tatethurston commented 1 month ago

Now supported in 2.2.2