Gemini API key on a Studio app

Hi, I’ve created an app in studio that uses Gemini in studio it works fine. Now I transferred the app to netlify and need to activate my own Gemini API key.

How to do that? I’ve set the Netlify environmemnt variable to Gemini_Api etc. But the app still shows the error that the api key is not present.

Who can assist me in setting this up?

Thanks for any suggestions.

Hi @appifier ,

Could you please try changing the environment variable to “VITE_GEMINI_API_KEY” and let us if still the issue persists.

Hello, thanks for the quick reply. No, this didn’t resolve the issue.

I did see in the meantime that I didn’t connect a project to the app. Maybe that causes the issue?

Unfortunately adding a project to the app is also a problem as my project is not found :roll_eyes:

Screenshot of the actual error message. Maybe that helps.