title: Next Auth getSession API call fails when used in getServerSideProps function on production
body: <p><code>getSession</code> is working fine in Client side but not in Server side</p>
  <p>When it is called in Server Side I get this error on server:</p>
  <blockquote>
  <p>error -&gt; <a href="https://next-auth.js.org/errors#client_fetch_error" rel="nofollow noreferrer">https://next-auth.js.org/errors#client_fetch_error</a> session FetchError: request to https://nextauth_url_internal/api/auth/session failed, reason: getaddrinfo ENOTFOUND nextauth_url_internal</p>
  </blockquote>
  <p>Server Side Code</p>
  <pre class="lang-js prettyprint-override"><code>export const getServerSideProps = async (context) =&gt; {
    const { req } = context;
    try {
      const session = await getSession({ req });
      console.log({ session });
      if (!session) return { redirect: { destination: '/', permanent: false } };
      return { props: { session } };
    } catch (error) {
      console.log(error);
    }
  };
  </code></pre>