I am getting this error whenever I try to refresh a routed page in my small Next.js app.
I solved it by adding an hash before the href url, such as <Link href='#/link'>
<Link href='#/link'>