next.js/test/e2e/getserversideprops/app/next.config.js
next.config.js24 lines451 B
module.exports = {
  // replace me
  async rewrites() {
    return [
      {
        source: '/blog-post-1',
        destination: '/blog/post-1',
      },
      {
        source: '/blog-post-2',
        destination: '/blog/post-2?hello=world',
      },
      {
        source: '/blog-:param',
        destination: '/blog/post-3',
      },
      {
        source: '/rewrite-source/:path+',
        destination: '/rewrite-target',
      },
    ]
  },
}
Quest for Codev2.0.0
/
SIGN IN