Authentication request not working in live environment

Hi all

I’m having some problems with getting an access_token from the authentication request in my production environment.
I’m using https://realm.mongodb.com/api/client/v2.0/app/<REALM_APP_ID>/auth/providers/anon-user/login and it is working perfectly in my local environment, I get both the access_token and the refresh_token in the response.
However, whenever I am making the request in my production environment, I get the following error: "cannot find app using Client App ID '<REALM_APP_ID>'".
It is a Next.js project that is deployed in Vercel(Introduction to Vercel | Vercel Docs).

Thankful for any help I can get