/* eslint-disable-next-line */ import Router from 'next/router' function routerDirect(props) { return
I import the router directly
} // we add getServerSideProps to prevent static optimization // to allow us to compare server-side changes export const getServerSideProps = () => { return { props: {}, } } export default routerDirect