title: How to configure path in NextJS
body: <p>I have the following addresses <code>/blog/post-1</code>, <code>/blog/post-2</code> and I want to rewrite all paths to <code>/post-1</code>, <code>/post-2</code>. I configure in the file next.config.js as follows</p>
  <pre class="lang-js prettyprint-override"><code>async rewrites() {
    return [
      {
        source: '/:slug',
        destination: '/blog/:slug',
      },
    ]
  }
  </code></pre>
  <p>However, the old path and the new path both work? What should I do?</p>