Host your Lovable app on your own server: what moves, what stays

You can take your code: Lovable says you own what you create and are never locked in. Apps made since 13 May 2026 run server code, so they need a server, not only static hosting. Your backend (sign-in, database, files, functions) is a separate move.

Coming soon · Not released yet · In testing on Mac.

Written on · Last updated by

The bad news first. If your app's data is in Lovable Cloud or in a Supabase project, Infrasmith cannot launch it today. That is planned. Planned This guide still tells you what you can do yourself, and the guide Can my app run on my own server? has a section called "My app's data is in Lovable Cloud or Supabase: what can I do today?".

Which Lovable app do you have?

Lovable changed how new apps are built. Its documentation says: "New apps created from May 13, 2026 use TanStack Start, which runs server code." And: "Older apps use React + Vite and build to static files." The difference decides what kind of hosting you need.

From Lovable's hosting and ownership page and its external hosting page, read on 22 and 23 November 2026; the addresses are under Sources.
When you started the appWhat it is built withWhat the build gives youWhat kind of host it needs
On or after 13 May 2026TanStack StartA program that runs on a server"the host has to run a server, not only serve files"
Before 13 May 2026React and ViteStatic files (pages, scripts, pictures)"any static host can serve them"

If you are not sure when the app was started, look at its code in the repository Lovable keeps for you. A file called package.json that names @tanstack/react-start means the newer kind.

Then ask two questions about the app itself:

  • Can people sign in? Sign-in needs a backend somewhere.
  • Does it save what people type in? Saved data lives in a database somewhere.

If both answers are no, your app is a website, and moving it is the easy case. If either answer is yes, find out where the backend is. In most Lovable apps it is Lovable Cloud or a Supabase project you connected. A folder integrations/supabase with a file client.ts in the code is a sign of that.

What can you take with you?

  • The code, through Git sync. Lovable's FAQ says: "On any plan, you can keep a repository in sync with Git sync and work on the code in any tool." Lovable makes a new repository for the project; the FAQ says "you cannot connect an existing one".
  • The code, as a .zip file. "On paid plans, everyone with edit access can download the whole project as a .zip file."
  • The database contents. You can export the database from the Database settings. Lovable's guide says the export is "a PostgreSQL custom-format .backup archive with zstd compression".

Lovable's ownership page says: "You own what you create", "You own your data", and "Lovable is intentionally built so that you are never locked in." It also says: "The applications you build with Lovable can be hosted anywhere."

What stays behind at Lovable?

These points come from Lovable's own pages, quoted as they read on 22 November 2026:

  • The old address. "Your lovable.app address stays with Lovable and keeps serving the version you last published there." Your users can still reach the old copy until you deal with it.
  • The editor. "The Lovable platform itself (the editor and AI agent) is a managed service" and "cannot be self-hosted". You keep building in Lovable and send the changes to your own server through the repository.
  • Files, functions and secrets. The database export "does not include stored files, Edge Function code, or secrets". Pictures and documents people uploaded, the small server programs called functions, and your passwords for other services must be moved or set up again.
  • Signed-in users. When the backend moves, "Sessions do not carry over, because the new project signs them with its own keys, so anyone signed in signs in again."
  • The rest of the backend. "Moving the PostgreSQL database alone does not move authentication, storage, realtime, or Edge Functions." For moving the whole backend, "the supported destinations are managed Supabase and self-hosted Supabase." Moving to plain PostgreSQL or another provider "means implementing equivalents yourself", and "Lovable does not support it."
  • Help when it breaks. "Lovable cannot monitor or debug production infrastructure it does not control."

Can I move only the front end and leave the backend at Lovable?

Yes, Lovable describes this. Its ownership page says: "Your built-in backend can stay in place while you move the frontend to another provider." It suggests you "Keep the repository connected through Git sync and let the other host deploy from it."

Your data, sign-in and functions then stay at Lovable, and so does that part of the bill. Lovable's hosting page says "Backend activity, such as database work and AI calls, is what consumes Run credits as your app is used", and that "A paused backend may not restart by itself". Lovable's ownership page adds a warning for the day you remove the original backend: "Do not assume managed sign-in, connectors, or email keep working once you remove the original backend or project."

What does Lovable's own guide expect you to do?

Lovable publishes a guide to hosting your app elsewhere (people also call this deploying). It is written for developers. In plain words, it expects you to:

  • build the app with npm run build on Node.js 22;
  • know that its settings are fixed when it is built ("Environment variables are baked into the build output"), so a changed setting means a new build;
  • restore the database export with pg_restore, in a version that can read its compression;
  • "Add the new URL to your authentication provider's allowed redirect URLs", so sign-in sends people back to your new address;
  • for older apps, package the app in a Docker container if your host uses them, and check it yourself: "Lovable cannot run or test Docker builds. Verify them yourself."

If these words mean nothing to you, that is normal. This is developer work. Either ask someone who has done it before, or use a tool that does these steps with you.

Which hosting advice from 2025 no longer fits?

Older advice says: build the app, then upload the files to any static host or storage bucket. That still fits an app started before 13 May 2026. It does not fit a newer app. Lovable's guide says a TanStack Start app "does not run from object storage or a CDN alone".

Hosts that run server code can take the newer kind. Lovable's guide names Vercel, Netlify and Cloudflare Pages among "the platforms Nitro detects automatically" (Nitro is the part that makes the app's server run on different hosts). A server you rent yourself can run it too, which is what the rest of this guide is about.

What does a small server cost?

On 22 November 2026, Hetzner listed its server with 4 GB of memory (CPX22) at EUR 16.99 a month in Helsinki and EUR 19.99 in Nuremberg, before VAT, including an IPv4 address. That day Hetzner's page marked this type, like every other, "This product is currently unavailable". Your domain and your Lovable plan come on top. Every line of the bill, with sources, is in what a small AI-built app costs per month.

What Infrasmith can do with a Lovable app today

Infrasmith is a Mac app in testing, built to put an app on a server in your own Hetzner account, with your domain at Cloudflare. For Lovable apps, today:

  • Its review recognises Lovable's TanStack template, Lovable's Supabase client file and Lovable Cloud sign-in. The review changes none of your code.
  • It is built to launch an older Lovable app (static files), or a newer one with no backend, on a server in your Hetzner account. This is in testing: the review has run on one real Lovable app in a study, and no Lovable app has been launched with it yet.
  • An app whose data is in Lovable Cloud or Supabase is stopped before launch with the reason. Launching such an app is planned. Planned Moving a backend out of Lovable is planned. Planned
  • It needs the app as a folder on your Mac (from Git sync or the .zip), or a repository at GitHub; picking one at GitHub has been tested against a stand-in of GitHub only.
  • Your domain must already use Cloudflare. Infrasmith does not move domains.

The accounts, the server, the domain and the bills are in your name. Who owns what, at Lovable and elsewhere, is in who owns your AI-built app. The steps you take and the steps the assistant takes are in how Infrasmith works. What has run so far, with dates, is in what works today.

Infrasmith is not released yet. Join the waitlist.

Sources

  1. Lovable documentation, "Deployment, hosting, and ownership options with Lovable", docs.lovable.dev/tips-tricks/deployment-hosting-ownership (the old address /tips-tricks/self-hosting leads here), read 23 November 2026: "New apps created from May 13, 2026 use TanStack Start, which runs server code." "Older apps use React + Vite and build to static files." "the supported destinations are managed Supabase and self-hosted Supabase." "Moving the PostgreSQL database alone does not move authentication, storage, realtime, or Edge Functions." "Lovable does not support it." "Do not assume managed sign-in, connectors, or email keep working once you remove the original backend or project." "You own what you create." "Lovable is intentionally built so that you are never locked in." "Your built-in backend can stay in place while you move the frontend to another provider." "Keep the repository connected through Git sync and let the other host deploy from it." "You own your data." "The applications you build with Lovable can be hosted anywhere."
  2. Lovable documentation, hosting outside Lovable, docs.lovable.dev/tips-tricks/external-deployment-hosting, read 22 November 2026: "TanStack Start apps run server code, so the host has to run a server, not only serve files." "Your lovable.app address stays with Lovable and keeps serving the version you last published there." "Sessions do not carry over, because the new project signs them with its own keys, so anyone signed in signs in again." "Lovable cannot monitor or debug production infrastructure it does not control." "Environment variables are baked into the build output." "Lovable cannot run or test Docker builds. Verify them yourself."
  3. Lovable documentation, FAQ, docs.lovable.dev/introduction/faq, read 22 November 2026: "On any plan, you can keep a repository in sync with Git sync and work on the code in any tool." "On paid plans, everyone with edit access can download the whole project as a .zip file." "The export does not include stored files, Edge Function code, or secrets."
  4. Lovable documentation, hosting, docs.lovable.dev/features/hosting, read 22 November 2026: "Backend activity, such as database work and AI calls, is what consumes Run credits as your app is used." "A paused backend may not restart by itself".
  5. Hetzner, Regular Performance cloud servers, hetzner.com/cloud/regular-performance, read 22 November 2026: CPX22, 2 vCPU, 4 GB, EUR 16.99 (Helsinki) and EUR 19.99 (Nuremberg) "per month, excl. VAT", "Price incl. IPv4"; beside each location: "This product is currently unavailable. Please check back later."