Contents
You built the site by chatting with Lovable, and now you want it on your own domain and hosting. The good news: Lovable gives you the full code, and in most cases the front end is a set of files you build once and upload. The part that needs care is the backend. The database, sign-in and uploaded files live on a separate service and don’t move when you copy files.
Know what you built first
A Lovable project has two halves:
- Front end: the pages visitors see. This is what you upload to your hosting.
- Backend: according to Lovable’s docs, the built-in backend includes a managed PostgreSQL database, sign-in and file storage, and you can connect your own Supabase project instead. It may also run Edge Functions for server tasks.
Lovable’s docs say new apps created from 13 May 2026 use TanStack Start, which renders pages on the server, while older apps use React + Vite, which renders in the browser. The deploy differs:
| Project type | How to tell | What you upload | Plan needed |
|---|---|---|---|
| React + Vite | No @tanstack/react-start in package.json |
Contents of dist/ |
Any plan |
| TanStack Start | @tanstack/react-start under dependencies |
.output/, run by Node.js |
AI/Developer plan |
Open package.json from Lovable’s code view and look for that name, or ask Lovable in the chat: “Is this project TanStack Start or React + Vite?”
Step 1: get the code out of Lovable
- GitHub (all plans): connect GitHub in the project settings and create a repository; Lovable then syncs code both ways. This is the best route, because every later change in Lovable reaches the repository.
- ZIP (paid plans): in Project settings › Git click Download codebase, or use the button at the bottom of the code editor’s file tree.
New to GitHub? See push a project to GitHub.
Step 2: set the variables and build on your computer
Install Node.js, then create .env.production in the project folder with the backend connection values. Lovable’s docs use these names:
VITE_SUPABASE_URL=https://xxxx.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY=...
VITE_SUPABASE_PROJECT_ID=xxxx
You’ll find the values in the .env file of the exported code or in the backend settings. These are public browser keys; a secret key (such as a service role key) never goes into the front end. Then:
npm install
npm run build
Why on your computer? The variables are baked into the JavaScript at build time, and the build needs more memory than a shared account’s limits may allow. If the values don’t show up on the live site, see environment variables not loaded.
Step 3a: React + Vite project (any plan)
- Zip the contents of
dist/(not the folder itself), soindex.htmlis at the top of the archive. - In cPanel open Files › File Manager, go to
public_html, click Upload, then right-click the ZIP and choose Extract. - Create
.htaccessnext toindex.htmlso inner pages don’t return 404 on refresh:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
Success looks like: the domain opens the home page, inner links open directly, and sign-in works. Full details in deploy a React app.
Step 3b: TanStack Start project (AI/Developer plans)
Lovable’s docs suggest building with the Node.js preset:
NITRO_PRESET=node-server npm run build
This writes a standalone .output/ folder that runs with node .output/server/index.mjs. On cPanel you don’t run that command yourself. Instead:
- Upload
.output/to a folder outsidepublic_html, such as/home/USER/lovableapp. - Next to it, add a tiny
app.cjscontaining one line:import('./.output/server/index.mjs'); - Open Software › Setup Node.js App › Create Application. Pick Node.js 24 (Lovable’s docs use 22; we offer 20 and 24), set Application root to
lovableappand Application startup file toapp.cjs. - Under Environment variables add
SUPABASE_URL,SUPABASE_PUBLISHABLE_KEY,SUPABASE_PROJECT_IDand any secrets your server functions read, then click Restart.
Passenger picks the port, so don’t hard-code one. If you get an error page, see Passenger app error and run a Node.js app.
Step 4: the backend, what to keep and what to replace
- Simplest: keep the backend as it is. Lovable’s docs say you can host the front end elsewhere and keep using the built-in backend. Your site on ArabyHost talks to it over the internet.
- Add your new domain to the allowed redirect URLs in the authentication settings, or Google sign-in will fail.
- Features that stay tied to Lovable: per its docs, AI calls and connectors keep running through Lovable until you replace them, and may stop if you remove the project there.
- Leaving completely: Lovable’s guide covers moving the backend to your own Supabase project. A database export alone doesn’t include stored files, Edge Function code or secrets. See what Supabase is.
ArabyHost offers no managed PostgreSQL and no Edge Functions, so Supabase stays an external service. Converting the project to MySQL is possible, but it means rewriting the backend, not moving it.
Troubleshooting
- Blank page: the
distfolder itself was uploaded, so files sit inpublic_html/dist/, or the build ran without the variables. See blank page after deploy. - 404 when refreshing an inner page:
.htaccessis missing. See SPA 404 on refresh. - Works in Lovable’s preview, not on the domain: usually the domain isn’t in the auth settings, or a key is missing. See works locally, not on the server.
On ArabyHost
A React + Vite Lovable project runs on every ArabyHost plan, shared hosting included: it is static files served by LiteSpeed with a free SSL certificate issued automatically. TanStack Start projects run on the AI/Developer plans, with Node.js 20 and 24 through Passenger, SSH and Git, so you can deploy from GitHub with Git Version Control. There’s no Docker, no managed PostgreSQL and no serverless functions, so the backend stays on Lovable or Supabase. Current prices in your currency are on the pricing page, and if you get stuck, ask for free migration help.
FAQ
Do I need a paid Lovable plan to download the code?
According to Lovable's docs, Download codebase (a ZIP of the project) is on paid plans, while Git sync with GitHub is available on every plan. From GitHub you can download the code or connect the repository to your hosting.
Do the database and sign-in move with the code?
No. The code moves; the PostgreSQL database, sign-in and file storage stay on Lovable's built-in backend or your own Supabase project, and the site reaches them over the internet. You can keep them as they are, or move them to your own Supabase account following Lovable's guide.
Why is the site a blank page after uploading?
Usually the dist folder itself was uploaded instead of its contents, or VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY were missing at build time. Those values are baked in during the build, so rebuild after setting them.
Does Google sign-in keep working on a new domain?
Yes, once you add the new site address to the allowed redirect URLs in your authentication settings, and in Google's console too if you use your own Google OAuth client.