title: NextJs: The Serverless Function exceeds the maximum size limit of 50mb
body: <p>I'm new working with NextJs and when trying to deploy my project to Vercel I'm getting the following error:</p>
  <blockquote>
  <p>Error! The Serverless Function &quot;api/auth&quot; is 50.55mb which exceeds the maximum size limit of 50mb.</p>
  </blockquote>
  <p>I have spent a lot of my time trying to find a proper answer but I didn't find any. Here is the code of the api request I'm making:</p>
  <pre><code>const { auth: adminAuth } = require(&quot;firebase/admin&quot;);
  
  export default async function auth(req, res) {
    const tokenId = req.query.token;
    return new Promise((resolve) =&gt; {
      adminAuth
        .verifyIdToken(tokenId)
        .then((user) =&gt; {
          res.json(user);
          resolve();
        })
        .catch(() =&gt; {
          res.status(302).send(&quot;Invalid authentication&quot;);
          resolve();
        });
    });
  }
  </code></pre>
  <p>I'll be really grateful if anybody can help me, thanks y'all!</p>