Skip to content
Every tutorial here is 100% free — and always will be
LSLovableStudent

Can I export my Lovable project?

Last checked 31 Aug 2026

Short answer

Yes. Sync the project to your own GitHub or GitLab repository, or download the codebase from the code editor. It is a standard project you can run anywhere.

Two routes out

  1. Git sync — connect GitHub (including Enterprise) or GitLab and the project stays two-way synced with a repository you own. Best long-term option.
  2. Download — take the codebase from the built-in code editor as a one-off snapshot.

What travels with you

  • All application source: components, routes, styles, configuration
  • Server functions and integration code
  • Database migrations, where they are stored in the project

What does not automatically travel

  • The managed Cloud backend itself — data and configuration must be migrated to a backend you control
  • Environment secrets, which you re-add wherever you host
  • Lovable's hosting and publishing pipeline

Practical advice

Turn on Git sync early, even if you never intend to leave. It gives you an independent backup, a change history in a format any developer understands, and an instant answer to "what happens if we outgrow this?".

Two ways to get the code out

  1. Connect GitHub. The cleanest route: your project becomes a repository you own, kept in sync as you build. Clone it and work locally with any editor.
  2. Download the repository. Once GitHub is connected you can download an archive from the repository like any other project.

What comes with the export

A standard front-end project: source files, components, routes, styles, configuration and dependency manifest. It builds and runs locally with the usual install-and-run commands.

What does not travel automatically

  • Your backend data. Tables, rows, users and storage live in the database, not the repository. Export them separately.
  • Secrets. Environment values are held in the platform, not committed to code. Recreate them wherever you host.
  • Hosting and the domain. Self-hosting means setting up your own build and deployment, DNS and SSL.

A safe self-host checklist

  1. Clone and run locally; confirm the app builds
  2. Recreate every environment variable
  3. Point the app at your backend, whether the managed one or your own
  4. Deploy to your host and confirm the build passes there
  5. Move DNS after the new deployment is verified, not before
  6. Retest auth, forms, payments and email on the new host

Do you own it?

Yes. The code Lovable generates for your project is yours — export it, modify it, host it elsewhere, or hand it to a developer. Keeping GitHub connected from the start means that option is always one clone away.

Sources

Was this answer helpful?

Related questions

Website made, maintained and hosted by PromptSites.com

PromptSites logo