How can I read basePath in Next.js 13 when I use AppRouter?
We can get it by reading router.basePath from useRouter of PageRouter by importing `import { useRouter } from 'next/router'
I cannot find any way to read it when I use AppRouter
import { useRouter } from 'next/navigation' has no basePath
Comments
Post a Comment