title: nextjs redirect works fine on local but does not work on production
body: <p>I have a next.config.js that looks like this:</p>
  <pre><code>module.exports = (phase, { defaultConfig }) =&gt; {
    const config = withFonts(
      withImages(
        withSass({
          publicRuntimeConfig: {
            CMS_HOST: process.env.CMS_HOST,
          },
          // trailingSlash: true,
          exportPathMap: function() {
            return {
              &quot;/&quot;: { page: &quot;/&quot; }
            };
          },
          redirects: async function() {
            return [{
              source: '/team/:slug*',
              destination: '/about-us/:slug*',
              permanent: true,
            },{
              source: '/advance-rate-model',
              destination: '/financing-options',
              permanent: true,
            },{
              source: '/medical-lien-factoring',
              destination: '/financing-options',
              permanent: true,
            }]
          }
        })
      )
    )
    return config;
  };
  </code></pre>
  <p>when I run on localhost:3000, it works fine, but when I deploy to stag and production, it does not redirect. Can someone please help? Thank you so much.</p>