Created
June 9, 2021 06:13
-
-
Save akellbl4/bccfe768a706db75323930b8a3bdfe72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lib/router.js | |
import NextRouter from 'next/router' | |
function push(url, opts) { | |
return NextRouter.push(url, null, opts) | |
} | |
const Router = { | |
...NextRouter, | |
push, | |
} | |
export default Router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment