Closed statusunknown418 closed 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
Now supported in 2.2.2
the
router
is now also available throughnext/navigation
, plus next includes another function:redirect
that also accepts a path and should be typed