title: Redirect all traffic from a subdomain on NextJS
body: <p>I want to redirect all traffic to my pricing page via a subdomain to my homepage. I can't figure out how to add wildcards in the has value.</p>
  <p>This syntax does not work:</p>
  <pre><code>// next.config.js
  module.exports = {
    target: 'serverless',
    async redirects() {
      return [
          {
            source: '/pricing',
            has: [
              {
                type: 'host',
                value: '*.*.*',
              },
            ],
            permanent: false,
            destination: 'https://example.com/'
          }
        ]
    },
  }
  </code></pre>
  <p>Any ideas?</p>