Deploy to Vercel
Get your API key, import the project, add environment variables, and go live.
Return to aistudio.google.com and open the API Keys page (or the Secrets panel inside your Build-mode project). If you don't already have one, click Create API key. Copy the resulting key — it starts with AIzaSy...
Go to vercel.com → Add New… → Project. Vercel shows your GitHub repos — click Import next to your new repo. If it doesn't appear, click "Adjust GitHub App Permissions" and grant repository access.
The three green dots = Production + Preview + Development. Leave all checked for each variable.
GEMINI_API_KEY is the name AI Studio's own runtime and the current Google GenAI SDKs read by default. VITE_-prefixed variables are what Vite exposes to client-side code at build time. Adding all four covers you regardless of exactly how your exported code references the key — check your src folder for the variable name actually used and prioritize that one.Scroll to the bottom of the Vercel configuration page and click the big Deploy button. The build typically takes 1–3 minutes. Watch the status:
On success you'll get your live URL: your-project-name.vercel.app, served over HTTPS automatically — a requirement for installing as a PWA.