Built it in Lovable? Here is what comes with you when you move to your own infrastructure

Updated

Last week we wrote about moving off Base44, where the interface comes with you and the server is rebuilt. With Lovable the picture is different, and better. The server behind a Lovable app is built on Supabase and the Postgres database, open and widely used technologies. So most of what you built comes with you as it is: the code, the data structure, the data itself and even user passwords.

First: where is your data?

A Lovable app is in one of two states, and it is worth knowing which one is yours:

  • The default is Lovable Cloud, where the server is managed by Lovable. You have no direct access to it, and you pay in Lovable credits. In this case the database and the files have to be exported and restored on your side.
  • In the second state, you connected Lovable to a project in your own Supabase account. The server is already outside, and this is the easiest move.

What comes with you

  • The code moves through the GitHub sync, which is available on every plan, including the free one.
  • Lovable lets you export the database as a full archive, with the structure and the data.
  • Users and their passwords are part of the database export, so every user keeps their existing password. Active sessions do not move to the new server, so anyone who was signed in will be asked to enter their password again once.

What does not move on its own

  • The files users uploaded are not in the database. They are kept in file storage (Storage), and the database export does not include them. Download them separately in Lovable, under More → Storage, and upload them to Storage in the new project.
  • API keys for external services that the app uses are not included in the export. In the Supabase project you enter them again on the Edge Function Secrets page, or with the supabase secrets set command, and the server functions read them as environment variables.
  • Login settings, such as signing in with Google, and email templates are set up again.
  • AI features and connectors that run through Lovable use Lovable credits and do not move. They are replaced with a direct account at the provider, such as OpenAI or Anthropic.

Limits worth knowing in advance

You can only export the database while the project is active, so a paused project, for example after the credits ran out, has to be started first. One export is allowed every 24 hours, and the official export is limited to databases of up to 15GB. The export file is stored inside the project, and deleting the database deletes it too, so download it and keep it elsewhere right away.

A move will not fix open database permissions

Code built in Lovable works, but database permissions are often partial or too broad, and some permission checks exist only on the client side. For example, the edit button is hidden from a user without permission, but the server approves the edit request from anyone who sends it directly. In May 2025 the researcher Matt Palmer reported that 170 of 1,645 apps shown in Lovable’s gallery exposed user data because of a missing permission setting. The move will not warn you about an open table, which is why a security review is part of every migration we do.

What to do today

  • Connect the project to GitHub, in an account you own.
  • Check which state you are in: Lovable Cloud or your own Supabase.
  • Download a database export and keep it outside Lovable.
  • List which connectors and AI features run through Lovable, so you know what needs an account of your own.
  • During the move, stop editing in Lovable. The GitHub sync works both ways, and changes can leak across.
  • Leave the Lovable project unchanged for two to four weeks after the move, as a backup.

With us, a move like this starts with mapping and ends with a security review, automated tests and an orderly release process. More about how we work with founders is on our page on app development for founders.

Sources

Want to talk about this in the context of your system? Book a free 45-minute intro call.