next.js/test/e2e/app-dir/hooks/next.config.js
next.config.js23 lines574 B
module.exports = {
  rewrites: async () => {
    return {
      afterFiles: [
        {
          source: '/rewritten-use-search-params',
          destination:
            '/hooks/use-search-params?first=value&second=other%20value&third',
        },
        {
          source: '/rewritten-use-pathname',
          destination: '/hooks/use-pathname',
        },
        {
          source: '/hooks/use-selected-layout-segment/rewritten',
          destination:
            '/hooks/use-selected-layout-segment/first/slug3/second/catch/all',
        },
      ],
    }
  },
}
Quest for Codev2.0.0
/
SIGN IN