API Key not calling

I made a Law Chatbot for preparing my friend for his exams. In dev mode of vercel it works perfectly. But when i send the url to my friend there is an API call error that its not calling it. I used gemini’s API key. idkw its not working. Any Help?

If anyone has an Idea we can talk one on one on discord and i can show the screenshots for it too

Hi @talalawan20-7676, welcome to the Vercel Community!

When you say “dev mode of vercel” do you mean “vercel dev” CLI command?

If so, you must set the API key variable in the production environment for the deployed version.

Can you explain in detail with URLs or screenshots what are you trying to accomplish?

Hi @talalawan20-7676, I wanted to follow up regarding the API call error you mentioned with your Law Chatbot. Have you had a chance to investigate the environment variable settings for your production deployment? If you still require assistance, please provide the following details:

  1. Confirmation of the API key setup in the production environment.
  2. Any error messages received when your friend attempts to access the bot.
  3. URLs or screenshots illustrating the issue.

Let me know if you need more details.