Environment Variables not working in Vercel/Netlify

Someone had a similar issue with Netlify: Error: `unauthorized` when deployed as a function on netlify. Everything works properly locally

Sometimes, the keys that you have saved to the cloud can get out of sync with what you are using locally. Note that a .env.development file will not be used when you deploy.

Are you using both Vercel and Netlify? Your app link is on a Vercel domain. Can you be more specific about what hosting platform you are using?

See the linked Topic for Netlify resources. Vercel’s documentation on env vars is here: Environment Variables | Vercel Docs