Migrate Lovable Projects with InsForge + Zeabur

AI redeploy made easy: MCP, Migrate Supabase, and env setup

Kyle ChungKyle Chung

How to Redeploy a Lovable Project on Zeabur Using an Insforge Template

For many programmers or developers without a relevant background, Lovable is undoubtedly an excellent choice for rapidly generating web pages using AI. However, when you need more advanced customization, more flexible deployment options, or wish to move your project to another platform, you might start looking for alternatives. This article will serve as your technical guide, detailing how to successfully migrate and deploy your project created on Lovable to two powerful cloud deployment platforms: Zeabur and Insforge.


Why Migrate from Lovable?

Lovable significantly lowers the barrier to web development with its AI-driven web page generation capabilities. However, as your project grows, you may encounter the following situations and consider migrating to other platforms:

  • Greater Customization Freedom: When you need to deeply customize your website's backend logic, database connections, or specific features, Lovable's closed environment may be limiting.
  • Cost Considerations: As traffic or the number of projects increases, you might receive a bill or hit usage limits, prompting you to seek more cost-effective hosting solutions.
  • Choice of Tech Stack: You may want to integrate your project into a broader technology ecosystem, such as using a specific backend framework or database. Zeabur and Insforge provide more flexible and powerful deployment solutions, giving developers complete control over their applications.

Why Choose Insforge?

Insforge is a platform that focuses on using AI Agents to help users reduce backend complexity. They recognize that backend development has long been a half-solved problem. AI can effortlessly generate front-end code but struggles with the complexities of the backend—database setups, authentication flows, and API design all require deep expertise. Insforge not only integrates many features but also incorporates MCP. After users complete the initial setup, they can communicate with the AI using natural language, reducing the need for developers to piece together multiple services while still enjoying DevOps benefits. This is why Insforge was created.

Migrating to Zeabur: A Smooth One-Click Deployment Experience

Zeabur is a platform that helps users deploy with one click, making it very friendly for users migrating from Lovable. Here are the steps to deploy your Lovable project to Zeabur:

Step 1: Export Your Project from Lovable

You have two options here:

Option 1: If you are not yet familiar with GitHub, you can use the following method:

Export your website project from the Lovable project backend. Generally, Lovable will provide an option to download the project as a zip file containing HTML, CSS, and JavaScript files.

Option 2: If you are familiar with operating GitHub, you can use the following method:

Lovable projects can be directly integrated with GitHub. In Lovable, you can link your GitHub account and then directly export the project to create a new GitHub Repository.

Step 3: Create a Project in Insforge and Link with MCP

  1. Sign up and log in to your Insforge account: Go to the official Insforge website and create your account.
  2. Create a new project: After logging into Insforge, click "Create New Project."
  3. Open your Cursor or another IDE (Integrated Development Environment):
    1. (Option 1) Steps to unzip and import into the code editor:

      1. Unzip the downloaded file: Find the .zip file downloaded from Lovable, right-click on it on your computer, and select "Unzip" or "Extract." After unzipping, you will get a folder containing all your project files.
      2. Install a code editor (if you haven't already): It is recommended to use a modern code editor like Cursor or Visual Studio Code. You can download and install it from the official website.
      3. Open the project in the editor: Open your code editor, select "Open Folder" or "File" → "Open," and then choose the project folder you just unzipped.
      4. Check the project structure: In the editor's sidebar, you should see the file structure of your project, including HTML, CSS, JavaScript files, and other related resources.
      5. Initialize Git version control (recommended): Run git init in the editor's terminal to initialize a Git repository. This will facilitate version management and deployment later.

      After completing these steps, you can start using AI-assisted tools (like Cursor's AI features) to modify and optimize your project code.

    2. (Option 2) git clone your saved Lovable project from your GitHub.

    3. Enter an editor that supports the MCP development flow and input your Insforge API Key.

  4. Once the setup is complete, the magic of Insforge and Zeabur begins:
    1. Enter the AI editor that supports Insforge MCP and let's re-confirm if Cursor can read and use the Insforge MCP.

      Example Prompts: can you see the insforge mcp?

    2. Check if the Lovable project has Supabase migration SQL tables. For projects exported from Lovable, the user authentication part needs to be reset. You can also ask Insforge MCP to handle this.

      Example Prompts: i have those @migrations from supabase, can you help me create the thing in insforge as well?

    3. The Cursor Agent, in coordination with Insforge MCP, sets up all the necessary databases for Insforge (PostgreSQL, Storage Bucket, and RLS). (Optional)

      Example Prompts: can you help me set up the PostgreSQL database, storage buckets, and RLS policies in InsForge based on my Supabase schema?

    4. Ask Insforge MCP to update the code to use the Insforge SDK. Review the existing Supabase configuration and usage.

      Example Prompts: can you replace all Supabase client usage with InsForge SDK? please check my current supabase configuration first.

    5. Ask Insforge MCP to check the current auth setup to ensure Insforge's authentication function is correctly configured.

      Example Prompts: can you verify that the authentication is properly configured with InsForge? please check my current auth setup.

    6. Optimize queries to use database relations and verify the database connection. Based on the db schema, the relations are set up correctly. (Optional)

      Example Prompts: can you optimize my database queries to use proper relations and verify the database connection is working correctly?

Step 4: Go to Your Zeabur Account

  1. Go to your Zeabur account, click Create Project, and select a region cluster.
  2. Enter the project, click Deploy from GitHub, and select the Lovable project.
  3. Click Configuration, then click Edit Raw Environment Variables, and paste VITE_INSFORGE_BASE_URL=Your project's Insforge Base URL.
  4. Click Next.
  5. Wait for the project deployment to complete.

Congratulations on migrating from Lovable to Zeabur or Insforge, which will bring greater flexibility and scalability to your project. Zeabur, with its extremely simplified deployment process, is the top choice for a convenient and painless migration. Meanwhile, Insforge, with its strong support for AI, MCP, and backend services, provides broader possibilities for your project's future development.