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