Is there a way to access the basePath
in Next.js 13 when using AppRouter
?
To retrieve it, we can simply get router.basePath
through the useRouter
hook of PageRouter
by importing `import { useRouter } from 'next/router'
I am currently unable to find a method to access it with the usage of AppRouter
The
import { useRouter } from 'next/navigation'
does not contain a reference to basePath