next.js/test/integration/revalidate-as-path/pages/_app.js
_app.js9 lines322 B
import { useRouter } from 'next/router'

export default function App({ Component, pageProps }) {
  // we log the asPath during rendering to make sure the value is
  // correct during the /_next/data request since they are kept in sync
  console.log(`asPath: ${useRouter().asPath}`)
  return <Component {...pageProps} />
}
Quest for Codev2.0.0
/
SIGN IN