title: Want to cancel the browser's back button with next.js
body: <p>I want to cancel the browser's back button with next.js.</p>
  
  <pre><code>  // not blocked...
    Router.onRouteChangeStart = (url) =&gt; {
      return false;
    };
  
  </code></pre>
  
  <p>Is there a function to stop browser back in next.js?</p>