tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
553 stars 20 forks source link

needs update for next 13 #169

Closed statusunknown418 closed 11 months ago

statusunknown418 commented 11 months 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 11 months 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