A comprehensive walkthrough on deploying and continuously updating your AI Co-Create application with a Supabase backend on the Zeabur - Your AI Agent Engineer.
This technical article will provide a structured guide for developers on how to deploy a web application created with Lovable, an AI-powered app builder, and its integrated Supabase backend, onto the Zeabur. The focus will be on establishing a continuous deployment pipeline, enabling seamless updates and redeployments.
This guide centers around three powerful technologies that streamline the development process:
By combining these tools, you can go from a simple prompt to a fully functional, deployed web application with a CI/CD pipeline in a matter of minutes.
Before you begin, ensure you have the following:
The first step is to get your Lovable project's code into a GitHub repository. Lovable has a built-in integration that makes this process straightforward.
This two-way sync means any changes you make in Lovable will be pushed to GitHub, and any changes you push to GitHub will be reflected in Lovable.
To enable communication between your frontend application on Zeabur and your Supabase backend, you need to properly configure the Supabase integration and environment variables.
Deploy Supabase Template: Within your Zeabur project dashboard, click the "Add Service" button and select the Supabase template from the available options.
Configure Kong Gateway: Navigate to the Kong service panel. You will find the Supabase Username and Supabase Password. Access the domain settings and enter these credentials to establish the connection.

Locate Your Supabase API Keys: In your Supabase project dashboard, navigate to Settings → API to find your Project URL and anon public key (also known as SUPABASE_PUBLISHABLE_KEY). Ensure that the environment variable names in your .env file match exactly with the variable names used in your codebase.
Click the connect button

Find the correct Key Value Pair for your project

Clone the repository to your local machine to enable continued development with your preferred IDE, access to advanced debugging tools, and the ability to work offline:
git clone [your-repository-url]
Navigate to the project directory:
cd [your-project-name]
Install dependencies:
npm install
Create a .env file in your project root and add the credentials from Step 2.3:
VITE_SUPABASE_URL=[your-url-from-step-2]
VITE_SUPABASE_ANON_KEY=[your-anon-key-from-step-2]
Run the development server locally:
npm run dev
Synchronize Database Schema: Execute the following command in your terminal to push your database schema to Supabase (ensure you have cloned the repository locally first):
supabase db push --db-url "[your-supabase-postgresql-connection-string]" --debug

You can obtain the PostgreSQL connection string from the Zeabur PostgreSQL service panel in your project dashboard.

Then insert the connection string into the command above.
Hint: Please make sure the credentials file such as
.envis listed in your.gitignorefile.
With your code now on GitHub, you can deploy it using Zeabur.
Create a New Project: In your existed supabase project in Zeabur dashboard, clicked Add Services in the top left panel
Deploy from GitHub: Choose to deploy a new service from a GitHub repository.
Select Your Repository: Zeabur will show a list of your GitHub repositories. Select the one you just created with Lovable.
Click Configurable and paste those supabase credentials inside the Environment Variables then click next and Deploy
Add a desirable domain name: In Networking public section, click Generate Domain then type in the domain name you like
After connecting your repository and configuring the environment variables, click the deploy button. Zeabur will automatically build and deploy your application. Monitor the deployment logs to track progress. Once complete, Zeabur provides a public URL where your application is live.
With your deployment pipeline established, updates become effortless:
This workflow enables rapid iteration and instant deployment of improvements.
This integration of Lovable, Supabase, and Zeabur creates an efficient development workflow. You can build AI-powered applications quickly and deploy them with minimal configuration, allowing you to focus on creating features rather than managing infrastructure.