AivahHelp CenterGo to Aivah
Aivah Code2 min read

Set up Environment 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.

By the end of this guidePublish your app to your own Vercel account, with its database, settings and your AI employee in place.

Who this guide is for

Anyone taking an Aivah Code project live

On this page
  1. Before you start
  2. Steps
  3. 1. Use the built-in database
  4. 2. Add your settings
  5. 3. Add your AI employee to the site
  6. 4. Publish to Vercel
  7. 5. Publish updates
  8. 6. Connect GitHub
  9. Good to know
  10. Troubleshooting
  11. Next steps

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 sets it up and connects it for you, so there's nothing to paste.

2. Add your settings

Add the environment values your app needs, such as an API key for a service it calls, and save them. They're copied to your live site when you 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.

Presenter employees aren't available here.

4. Publish to Vercel

Choose Publish. The first time, create a token at vercel.com/account/tokens and choose Add Vercel token. Aivah publishes to your Vercel account and shows the progress. Choose Open in Vercel to see the deployment.

5. Publish updates

After more changes, choose Publish again to send a new version to your live site.

6. Connect GitHub

Choose Connect GitHub to keep your project's code in your own repository.

Good to know

If you unpublish, you choose whether to Keep it on Vercel or Delete Vercel project. Older guides mention Supabase or Neon. Aivah Code now sets up your database for you.

Troubleshooting

  • Publish failed: read the message. Then choose Fix with AI, or ask Aivah to fix the build errors, and publish again.
  • Publishing asks for a token again: add a fresh Vercel token. You can replace it at any time.
  • The live site is missing a setting: add it in Environment, then publish again.

Next steps

Add Aivah to any other website, or start another project.