Last updated: · By Asael Dreyer
In short: to move a Lovable site to your own hosting, you connect the project to GitHub (in the project settings, under Git), then connect the repository to a hosting service that builds and runs the code, for example Cloudways Velocity, which supports React and Next.js and starts at $20 a month. First check which kind of project you have: older Lovable projects (React + Vite) build to static files, and newer projects (from 13 May 2026) are built on TanStack Start and need a server that runs code. The database (Supabase or Lovable Cloud) moves separately. Here’s how to do it, as of November 2026.
⏱ Time needed: 30–60 minutes (without moving data) · Difficulty: intermediate · Last checked against the official documentation: 6 Nov 2026
Why move a site off Lovable at all
Lovable is an AI app builder: you describe in words what you want, and it writes the code. It also hosts the site, including a custom domain and SSL. So why move? These are the reasons I hear most often:
- Ownership and control: the code and the site sit with you, and don’t depend on a single platform’s plan.
- A developer or agency takes over in their own tools (Cursor, VS Code) and wants a regular deployment from Git.
- Several apps on one server at a fixed price, instead of a separate account for every project.
- Client requirements: security, server location or an invoice from a single vendor.
When not to move: if you’re still building and changing the app every day through Lovable’s chat, and their hosting works for you, there’s no urgency. Moving adds a layer of management. You can also leave the backend on Lovable and move only the frontend. Not sure which tool to use? There’s a comparison of AI website builders.
Step 0: Which kind of project do you have?
This is the most important question, and it decides where you can host. According to Lovable’s documentation, there are two kinds:
| Older project (React + Vite) | Newer project (TanStack Start) | |
|---|---|---|
| When it was created | Before 13 May 2026 | From 13 May 2026 |
| How it runs | Built into static files that run in the browser | Renders pages on the server side |
| Where you can host it | Any static hosting, a CDN, or a server with NGINX | Only hosting that runs server code |
| How to tell | package.json lists vite, and there is a vite.config file | package.json lists the @tanstack/react-start package |
Vite is a build tool that turns your React code into ready-made HTML, JavaScript and CSS files. TanStack Start is a framework that runs part of the code on the server, which is good for SEO but requires a runtime environment. The check takes a minute: open package.json in the GitHub repository and look for those names.
Where you can host: four options
| Option | Best for | Advantage | Drawback |
|---|---|---|---|
| Stay on Lovable’s hosting | Anyone still building in Lovable | Zero work, domain and SSL included | Dependence on a single platform |
| Static hosting / CDN (Netlify, Cloudflare Pages and similar) | A simple Vite project | Simple, usually with a free tier | Not suited to a TanStack Start project without adjustments |
| Managed Node.js (Cloudways Velocity) | Anyone who wants Git deployment, several apps and a fixed price | Presets for React and other frameworks, PostgreSQL or Supabase, CDN and WAF included | From $20 a month, no free tier |
| Your own VPS | Developers who manage Linux | Full control | Security, SSL and updates are on you |
For the rest of the guide I’ll use Velocity, because it’s the managed solution I know closely. The GitHub and Supabase steps are the same with any provider.
What Velocity supports, and what I haven’t tested yet
Velocity is Cloudways’ managed Node.js hosting: a server that runs all the time (no cold starts), deployment from GitHub, GitLab or Bitbucket, and a fixed monthly price. According to Cloudways’ product page, Velocity supports Next.js, Remix, React, Astro, Express, Fastify, Angular and n8n, on Node versions 22.x and 24.x. Vite isn’t on that list. Cloudways writes that anything built for SSR or as a static bundle and started with a Node command can run, with a preset called Other for the remaining cases. If you run automations in n8n, you can read the guide to n8n hosting.
- Older Lovable project (React + Vite): React is a ready preset, and the panel detects the framework from the repository automatically. Vite itself isn’t in the list of presets, so I expect the project to run with the React preset or with Other, but I haven’t tested it myself on a Lovable project. Check during the trial period before you commit.
- Newer Lovable project (TanStack Start): TanStack Start isn’t in the list of presets. By Cloudways’ wording, it should run through Other if the build produces a Node server that starts with a command. I haven’t tested it myself on a Lovable project, so if that’s your case, try it during the trial period (3 days on Starter and Professional) before you commit, and contact support if the build fails.
Moving a Lovable site to Velocity, step by step
Part A: Move the code to GitHub
- In Lovable, open Project settings ← Git ← GitHub and click Add connection.
- In the GitHub window choose an account, select Only select repositories (recommended) and click Install & Authorize.
- Go back to the project settings and click Connect. Lovable creates a new repository, private by default, and starts a two-way sync.
The sync works on one branch at a time, usually main. Every change you make in Lovable reaches GitHub, and every push to that branch comes back to Lovable. If you only want a copy, there’s also Download codebase (a zip file), but it requires a paid plan and doesn’t stay up to date.
Part B: Deploy on Velocity
- In the Cloudways management panel choose Velocity in the menu and click Get Started.
- Choose a plan. For a single Lovable site, Starter (2GB, up to 5 apps) is enough. Click Proceed, name the server and choose a location.
- On the Select Repository screen choose GitHub and click Connect. Authorize the Cloudways Deploy app, and again it’s better to select only the relevant repository.
- Choose the repository Lovable created and click Continue.
- On the Review build settings screen check the Framework Preset: React (or whatever the panel detected) for an older project, Other for a TanStack Start project. Choose a branch (main) and a Node version (22 LTS is a safe choice).
- Under Build and output settings make sure the build command and output folder are right. In a regular Vite project, the build is
npm run buildand the output is in thedistfolder. If yours differ, click Change. - Add environment variables (see the next section) with Add, or import a .env file with Import .env.
- Click Deploy Now and wait a few minutes. At the end you get a temporary address for testing.
A detailed walkthrough of all the Velocity management screens is in the guide to managing apps on Velocity.
Environment variables and keys: the part everyone forgets
Environment variables are values the app reads at build time or run time, like the Supabase URL and its public key, without writing them in the code. Lovable’s documentation warns that when you move the frontend, you need to set up the environment variables, secrets and login redirect URLs again with the new provider.
- In a Vite project, only variables that start with
VITE_reach the code that runs in the browser, and they’re baked in at build time. If you changed a variable, you need to rebuild (Redeploy). - Whatever goes into the browser is visible to every visitor. Supabase’s anon key is designed for that. Never put a service_role key or an AI provider’s key in a VITE_ variable.
- On Velocity you can mark a variable as Sensitive. After you save, you can’t see the value again, so copy it correctly before saving.
The database: Supabase, Lovable Cloud or PostgreSQL
The code on GitHub includes the migration files that define the table structure, but not the data and not the uploaded files. There are three situations:
| Your situation | What to do |
|---|---|
| The project is connected to your own Supabase | Don’t move anything. Set the Supabase environment variables on Velocity, and update the redirect URLs in Supabase to the new domain. Velocity also has a built-in Supabase connection on the Database page |
| The project uses Lovable’s built-in backend | You can leave it there and move only the frontend. If you want to move it too, the supported targets according to Lovable are managed Supabase or self-hosted Supabase |
| You want PostgreSQL inside Velocity | Possible, but Lovable notes that moving to plain PostgreSQL doesn’t carry over login, file storage, Realtime and Edge Functions. That’s rebuilding parts, not migrating |
My recommendation for most people: leave the backend on Supabase and move only the site. It’s the least risky, and you can move the data at a later stage.
Connecting your domain
On Velocity, the domain is connected through Cloudflare Enterprise, which is included in the plan. The process:
- In the app, open Domain Management and enter your domain.
- After verification a window with DNS records appears. Cloudways recommends CNAME records for the main domain and for www, and gives A records as an alternative.
- At your domain registrar, delete existing records with the same name that conflict, and add the new ones.
- Wait for verification. SSL is issued automatically.
Tip for country-code domains: some DNS interfaces don’t allow a CNAME on the root domain (@). In that case use the alternative A records. If your domain is managed on Cloudflare, make sure the records are set to DNS Only. More on managing DNS at registrars in the domain DNS guide.
The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.
The offer ends on December 4, 2026 at 23:59 (UTC+2).
Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.
After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator
Start a free trial server, no credit card. When you move to a paid plan, the code ASAEL takes 30% off your bill for the first three months.
The link fills in the code on the signup form. Just make sure it shows up.
What about Bolt?
Bolt (bolt.new) works in a similar way. According to its documentation there are two ways to get the code out:
- GitHub sync: you connect a repository to the project, and the commits sync. From here the deployment to Velocity is the same as Part B above.
- Zip download: under the project name, Export ← Download (desktop only, not mobile). Then you upload the folder to a new Git repository.
With Bolt too, moving the code doesn’t move the database, the login or the hosting settings. Check package.json to see which framework the project uses, and choose the matching preset on Velocity.
Common mistakes and how to fix them
The site comes up, but it’s blank or has an error in the console: almost always missing environment variables. Check that you set every variable listed in the .env.example file or in the code, and rebuild.
The home page works, but refreshing an inner page returns 404: in a static React app, routing happens in the browser, and the server has to return index.html for every address. Check whether the preset handles this. If not, Velocity has Web Rules with Rewrite Rules, or contact support.
Login redirects back to a Lovable address: update the Site URL and the list of Redirect URLs in Supabase to the new domain.
The build fails: check the build logs in the Deployments tab. Common causes: an unsuitable Node version, a wrong build command, or the wrong preset. For a TanStack Start project, try Other with the commands from package.json.
Changes in Lovable “overwrite” changes from Cursor: both tools work on the same branch. Decide who works when, or work on a separate branch and merge.
Frequently asked questions
You connect the project to GitHub from the project settings, connect the repository to a hosting service such as Velocity, Netlify or a VPS, set the environment variables, and point your domain with DNS records. You can leave the database on Supabase.
Yes. GitHub sync is available on every plan and creates a private repository. There’s also a zip download of the code (Download codebase), which requires a paid plan. Neither route includes the data or the uploaded files.
An older Lovable project, based on React and Vite, should run with the React preset or Other (Vite itself isn’t in Velocity’s list of presets, and I haven’t tested it on a Lovable project). A newer project based on TanStack Start isn’t in the list of presets, and should run through Other if the build produces a Node server. It’s worth testing during the 3-day trial.
The Starter plan costs $20 a month, as of November 2026, and allows up to 5 apps on the same server with 2GB of memory. Supabase, if you use it, is paid separately with them.
If you have your own Supabase project, it stays where it is, and you only update its redirect URLs to the new domain. If you used Lovable’s built-in backend, you can leave it or move it to managed or self-hosted Supabase.
Yes. The sync with GitHub is two-way, so every change in Lovable is pushed to the repository. If you turned on automatic deployment on Velocity, the site updates after every change.
The offer ends on December 4, 2026 at 23:59 (UTC+2).
Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.
Start a free trial server, no credit card. When you move to a paid plan, the code ASAEL takes 30% off your bill for the first three months.
The link fills in the code on the signup form. Just make sure it shows up.
Related guides
- Cloudways Velocity: managed Node.js hosting, full review
- Managing an app on Velocity: deployments, domains and backups
- Velocity pricing: Starter to Business
- Git deployment on Cloudways
- All the guides on this topic: AI and automation
Sources (checked 6 Nov 2026): How to Launch an Application on Cloudways Velocity · How to Connect and Manage a Database on Cloudways Velocity · How to Add a Domain to Your Application on Cloudways Velocity (Cloudways Knowledge Base) · Cloudways Velocity · Lovable – GitHub integration · Lovable – Deployment, hosting and ownership · Lovable FAQ · Bolt – GitHub · Bolt – Manage your projects. This guide was written and tested by Asael Dreyer · Updated: 6 Nov 2026
Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details