diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 5184b8d..9b990cf 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,16 +1,21 @@ import Head from "next/head"; import dynamic from "next/dynamic"; +import { useRouter } from "next/router"; const AppWithoutSSR = dynamic(() => import("@/App"), { ssr: false }); export default function Home() { + // On Pages the site is served under /pikachu, so a root-absolute icon path + // 404s. basePath is "" in dev and the configured prefix in the export. + const { basePath } = useRouter(); + return ( <> Pikachu Connect - +