next.js/test/integration/telemetry/next.config.custom-routes
next.config.custom-routes39 lines632 B
module.exports = phase => {
  return {
    rewrites() {
      return [
        {
          source: '/hello-1',
          destination: '/world'
        },
        {
          source: '/hello-2',
          destination: '/world'
        },
      ]
    },
    redirects() {
      return [
        {
          source: '/hello-3',
          destination: '/world',
          permanent: false
        }
      ]
    },
    headers() {
      return [
        {
          source: '/hello-4',
          headers: [
            {
              key: 'x-path',
              value: 'hello-4'
            }
          ]
        }
      ]
    }
  }
}
Quest for Codev2.0.0
/
SIGN IN