Set up the Environment tab and publish your app
Use the database that comes with every project, add your settings, put your AI employee on the site and publish to your Vercel account.
- Who it's for
- Anyone taking an Aivah Code project live
- You'll be able to
- Publish your app to your own Vercel account, with its database, settings and your AI employee in place.
Every Aivah Code project comes with its own database. Add your settings, put your AI employee on the site and publish to your own Vercel account. Vercel is the service that hosts your live site.
Before you start
- Your app works the way you want in Preview. See Preview and refine your app.
- A Vercel account. You'll create a token there to publish. A token is a key that lets Aivah publish to your account.
Steps
1. Use the built-in database
Choose Environment. Database shows your project's Cloud SQL (MySQL) database. Aivah creates it for this project alone and connects it for you, so there's nothing to paste. Ask in the chat for the tables your app needs, and Aivah Code creates them.
2. Add your settings
Add the environment values your app needs, such as an API key for a service it calls, and save them. Names use capital letters, and NODE_ENV and names starting with VERCEL_ are reserved. Saved values sync to your Vercel project before each publish.
3. Add your AI employee to the site
Choose Add an AI employee to your site and pick one of your web experiences. Then choose where it goes:
- a Chat bubble on every page;
- or a Home page section, with a chat near the end of the home page.
Some placements aren't available for Presenter employees.
4. Publish to Vercel
Choose Publish. The first time, create a token at vercel.com/account/tokens, choose Add Vercel token, paste it, and add your Team ID if you use a Vercel team. Aivah publishes only to your Vercel account, so the deployment is yours. When it's done, Your site is live appears. Choose Open live site to see it.
5. Publish updates
After more changes, choose Update to send a new version to your live site.
6. Download or share the code
Choose Download code as ZIP to keep the full source. Choose Copy live site link to share the published site.
Good to know
If you unpublish, you choose whether to Take the site offline, which deletes the Vercel project, or Keep it on Vercel. Older guides mention Supabase or Neon. Aivah Code now sets up your database for you.
Troubleshooting
- Publish failed: choose Show build log to see what went wrong. Then choose Fix with AI, or ask Aivah to fix the build errors, and choose Try again.
- Publishing asks for a token again: choose Replace Vercel token and paste a fresh one from Vercel.
- The live site is missing a setting: add it in Environment, then choose Update.
Next steps
Add Aivah to any other website, or start another project.


