next.js/test/integration/rewrites-has-condition/next.config.js
next.config.js21 lines339 B
module.exports = {
  rewrites() {
    return [
      {
        source: '/rewrite-simple',
        destination: '/another',
      },
      {
        source: '/rewrite-with-has',
        has: [
          {
            type: 'query',
            key: 'hasQuery',
          },
        ],
        destination: '/another',
      },
    ]
  },
}
Quest for Codev2.0.0
/
SIGN IN