How to Deploy a Lovable App (Step-by-Step, 2026)
You built something cool in Lovable. It works in the preview, and now you want it on the real internet where people can use it.
Good news: learning how to deploy a Lovable app is mostly clicking buttons and copying a few settings. The easy route is Lovable’s own Publish button. The DIY route is syncing your code to GitHub and hosting it on Vercel or Netlify, which gives you more control.
This guide covers both, step by step. Here’s the quick version:
| Step | What to do | Where |
|---|---|---|
| Before you start | Check if your app is older React + Vite or TanStack Start | package.json |
| 1. Publish (easy route) | Click Publish and get a free lovable.app link | Lovable |
| 2. Sync to GitHub | Connect GitHub so Lovable creates a private repo | Lovable project settings |
| 3. Deploy to Vercel | Import the repo, build with npm run build |
Vercel |
| 4. Or deploy to Netlify | Same idea, publish folder dist |
Netlify |
| 5. Env vars | Copy the VITE_ values from your .env file |
Vercel or Netlify settings |
| 6. Auth redirects | Add your live URL to the allowed redirect URLs | Supabase or Lovable Cloud |
| 7. 404 fix | Add an index.html rewrite (older Vite apps only) | vercel.json or _redirects |
| 8. Custom domain | Add your domain and copy the DNS records | Your host and registrar |
| 9. Test | Refresh, sign in, sign out, try every feature | An incognito window |
Rather skip the setup? Launch Mango moves your Lovable app off Lovable and onto your own GitHub, Supabase and Vercel or Netlify accounts (code, database and env vars), so you’re not locked in. It goes live at a real URL with a plain-English handover report, usually in 1 to 2 days, for $79 one-off. If it doesn’t end up live on your accounts, you get your money back. Move my app with Launch Mango »
Before You Start: Check Which Kind of Lovable App You Have
Lovable builds apps on two different stacks. Projects created from May 13, 2026 use TanStack Start, which runs a small server. Older projects are plain React + Vite apps that build into a folder of static files called dist.

To check, open package.json in Lovable’s Code tab. If you see @tanstack/react-start in the dependencies, it’s a TanStack Start app. If not, it’s an older React + Vite app. Or just ask Lovable in the chat.
Why it matters: both work on Vercel and Netlify, but the build settings differ a bit, and only older Vite apps need the 404 fix in Step 7.
Step 1: Use Lovable’s Built-In Publish Button
Want a live link today? Lovable publish is the fastest Lovable deploy there is. No servers, no settings, HTTPS included.

- Click Publish in the top-right corner of the editor, next to Share.
- Keep the suggested address (something like
yourapp.lovable.app) or edit it. - Choose who can see it. Public is the default.
- Glance at the quick security scan. It takes about 10 seconds and checks things like your database access rules (RLS). Findings don’t block publishing by default, but fix anything critical first.
- Click Publish. Lovable shows your live link when it’s done.
One thing that trips people up: later edits don’t go live on their own. After changes, open the dialog again and click Publish changes.
Publishing from the dialog is free. Hosting and the built-in backend (Lovable Cloud) use credits as people use your app, but for most small apps the included monthly grant covers it. Custom domains need a paid plan (Pro starts at $25 a month).
The honest trade-off: Lovable hosting is the easiest option by far, but you get less control. You don’t pick the platform, you can’t remove the lovable.app address, and on the Free plan Lovable may unpublish a project with no visits and no owner logins for 12 months. Want your own hosting? Keep going.
Step 2: Sync Your Lovable Project to GitHub
To host anywhere else, your code needs to live in a GitHub repository. Lovable’s GitHub sync works on all plans, including Free, and it’s two-way: changes in Lovable go to GitHub, and changes pushed to GitHub come back into Lovable.

- Open Project settings, Git, GitHub (or click the + next to the chat box and choose Project, GitHub).
- Click Add account, pick your GitHub account or organization, and click Install & Authorize on the Lovable GitHub app.
- Back in Lovable, click Connect next to that account.
Lovable then creates a brand-new private repository and starts syncing. Good to know:
- You can’t connect to a repo that already exists. Lovable always creates a new one.
- Don’t delete the repo, or the sync stops. Renaming it is fine.
- Lovable syncs one branch at a time, usually
main.
Paid plans can also download the codebase as a zip, but GitHub sync is better for deploys, because Vercel and Netlify can redeploy every time the repo changes.
Step 3: Deploy Your Lovable App to Vercel
Vercel is a popular place to deploy a Lovable app outside Lovable. Sign up with GitHub so it can see your repos.

- In Vercel, add a new project and import your Lovable repo from GitHub.
- Check the build settings, which Vercel usually detects for you. For an older React + Vite app, the Framework Preset is Vite, the build command is
npm run buildand the output directory isdist. For a TanStack Start app, usenpm run buildwith Node.js 22 and leave the output directory empty. Vercel doesn’t need one. - Add your environment variables (Step 5) before the first deploy.
- Click Deploy. You’ll get a free
yourapp.vercel.appaddress to test with.
From now on, every push to your production branch redeploys automatically, including the changes Lovable syncs to GitHub.
Pricing caveat: Vercel’s Hobby plan is free, but it’s for personal, non-commercial use only. If your app makes money (ads, subscriptions, a Stripe button), plan for Vercel Pro at $20 a month.
Step 4: Or Deploy Your Lovable App to Netlify
Netlify works almost the same way and has a free plan.

- Add a new project in Netlify and import your repo from GitHub.
- For a Vite app, Netlify suggests the build command
npm run buildand the publish directorydist. Keep those. TanStack Start apps also usenpm run buildanddist, and Lovable recommends Node.js 22. - Add your environment variables, then deploy. You’ll get a free
yourapp.netlify.appaddress.
Prefer keeping settings in code? Add a netlify.toml file to the root of your repo:
[build]
command = "npm run build"
publish = "dist"
Free plan caveat: Netlify’s Free plan is $0 with a 300-credit monthly limit, and each production deploy uses 15 credits. Every edit Lovable syncs to GitHub can trigger a deploy, so lots of tiny edits burn credits fast. The Personal plan is $9 a month with 1,000 credits.
Step 5: Add Your Environment Variables
Environment variables (“env vars”) are settings your app reads when it builds, like your Supabase URL and key. On Vercel or Netlify, they don’t exist until you add them, which is one of the most common reasons for a blank page after deploy.

Copy the values from the .env file in your repo into your host’s environment variable settings. For an app on Lovable Cloud, that usually means:
# Older React + Vite apps
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY=your-publishable-key
VITE_SUPABASE_PROJECT_ID=your-project-id
# TanStack Start apps: the two VITE_SUPABASE values above, plus
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_PUBLISHABLE_KEY=your-publishable-key
Here’s the VITE_ rule: anything that starts with VITE_ gets bundled into the browser code, where anyone can read it. That’s fine for public values like the Supabase URL and publishable key. Never put a secret key behind a VITE_ prefix. Secrets your server functions use (like a Stripe secret key) aren’t in the repo at all, so add them to your host by hand, without the prefix.
Last thing: VITE_ values are baked in at build time. On Vercel, env var changes only apply to new deployments, so redeploy after you add or change a variable, on whichever host you use.
Step 6: Update Your Supabase Auth Redirect URLs
Classic launch-day bug: sign-in works in Lovable, then sends real users to localhost or throws a redirect error on your new URL. Your auth provider needs to know your new address.

If your app uses your own Supabase project, go to Authentication, URL Configuration in the Supabase dashboard:
- Site URL: change it from localhost to your live address, like
https://yourapp.com. Supabase also uses this for email confirmations and password resets. - Redirect URLs: add the exact live URL your app sends people back to after login, plus wildcard entries for preview deploys if you use them.
https://yourapp.com
https://*-your-team-slug.vercel.app/**
https://**--your-site.netlify.app/**
The first line is your real domain. The other two cover Vercel and Netlify preview deploys (use your own team or site name). Supabase recommends the exact URL for production and saving the ** wildcards for previews and local testing.
If your app runs on Lovable Cloud (the built-in backend), add your new URL under More, Cloud, Users, Auth settings, Advanced, or ask Lovable in the chat to add it to the auth redirect URLs. Using your own Google OAuth credentials? Add the new URL in Google Cloud Console too.
Step 7: Fix the 404 on Refresh (Older Vite Apps Only)
Older React + Vite apps are single-page apps: there’s only one real page, index.html. Refresh yourapp.com/dashboard and the host looks for a file that doesn’t exist. Result: 404.

On Vercel, add a vercel.json file to the root of your repo:
{
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}
On Netlify, add a file called _redirects to your public folder with this one line:
/* /index.html 200
Skip this step for TanStack Start apps. Their server handles routing, so the rewrite isn’t needed and can get in the way. A 404 on a TanStack app usually means the host isn’t running the server part, so recheck your build settings from Step 3 or 4.
Step 8: Connect Your Lovable Custom Domain
A custom domain like yourapp.com makes your app look legit. Where you set it up depends on your host.

- On Lovable hosting: go to Project, Settings, Domains (paid plan). Buy a domain right there, or connect one you own by adding the A record and TXT record Lovable shows you. Lovable sets up SSL for you. Remove any old AAAA records first, since they can send traffic to the wrong place.
- On Vercel or Netlify: add the domain in your project’s domain settings and copy the DNS records they give you into your registrar. Both handle HTTPS certificates, and Netlify’s Free plan includes custom domains with SSL.
- Cover both versions: make sure
yourapp.comandwww.yourapp.comboth work.
DNS changes can take up to 72 hours, though most go live within a few hours. Once the domain works, go back to Step 6 and add it to your auth redirect URLs.
One gotcha: if you move off Lovable hosting, your lovable.app address keeps serving the last version you published there. Unpublish it in Project settings if you don’t want an old copy hanging around.
Step 9: Test Your Live App Like a Stranger
Before sharing the link, open an incognito window and use your app like a first-time visitor.

- Open a deep page directly (like
/dashboard) and refresh. A 404 means Step 7 (or your TanStack build settings) needs another look. - Sign up, sign out and sign back in. A redirect error points back to Step 6.
- Try everything that saves or loads data, including uploads.
- For TanStack Start apps, open a server-rendered page and trigger a server function, not just the buttons.
- Check it on your phone.
When all of that passes, congrats, your Lovable app is live. For the bigger production checklist (Supabase RLS, Stripe webhooks and security), see my guide on how to launch your vibe-coded app.
Lovable Hosting vs Vercel vs Netlify vs Launch Mango
Still deciding? Here’s how the routes compare.

| Lovable Publish | Vercel | Netlify | Launch Mango | |
|---|---|---|---|---|
| Cost to start | Free lovable.app link; custom domain needs a paid plan (Pro from $25/mo) | Hobby free (non-commercial only); Pro $20/mo | Free (300 credits/mo); Personal $9/mo | $79 Own Your App or $199 Own and Secure, one-off |
| Control | Lowest | High | High | Highest: everything moves to your own accounts |
| Custom domain | Paid Lovable plan | Yes | Yes, even on Free | Included in Own and Secure |
| Best for | The fastest live link | Builders who want control and previews | Free-tier tinkerers | Founders who want to own their app and take real users |
My take: use Lovable’s Publish button if you just need a link, and move to Vercel or Netlify when you want more control. DIY is very doable, but it takes time: budget an afternoon for your first one.
Lovable’s Publish button already gets you a link, so the real question is who owns the app. If you’d rather skip the DIY route, Launch Mango moves the whole thing onto your own GitHub, Supabase and Vercel or Netlify accounts, fixes what breaks on the way and sends a plain-English handover report, usually in 1 to 2 days. Taking sign-ups or payments? Their $199 Own and Secure tier also checks sign-in and redirects, Supabase RLS, exposed API keys and live Stripe payments, with a security report and a custom domain.
I compared every option in more detail in my roundup of the ways to get your Lovable or Bolt app live.
FAQ
Quick answers to the most common Lovable deploy questions.

How do I deploy a Lovable app for free?
Click Publish in Lovable for a free lovable.app address, or sync to GitHub (free on every Lovable plan) and use Netlify’s Free plan or Vercel’s Hobby plan (non-commercial only).
Can I deploy a Lovable app to Vercel?
Yes. Sync to GitHub, import the repo into Vercel, add your env vars and deploy. Older React + Vite apps also need the vercel.json rewrite from Step 7.
Do I need a paid Lovable plan for a custom domain?
Only if Lovable hosts your app. Connecting a custom domain on Lovable hosting needs a paid plan. If you host on Vercel or Netlify, you connect the domain there instead.
Will my live app update when I edit it in Lovable?
On Lovable hosting, only after you click Publish changes. On Vercel or Netlify with GitHub sync, every change Lovable pushes to your synced branch can trigger a new deploy automatically.
Why does my Lovable app show a blank page after deploying?
Almost always missing environment variables. Copy the VITE_ values from your .env file into your host’s settings and redeploy.
Conclusion
Figuring out how to deploy a Lovable app comes down to one choice: easy or flexible. Lovable’s Publish button gets you live in two clicks. The DIY route through GitHub and Vercel or Netlify takes longer, but you get full control.

If you like learning by doing, bookmark this guide and work through it step by step. If you’d rather spend that time on your users, have Launch Mango move it onto your own accounts for $79, or $199 for Own and Secure with sign-in, RLS, API keys, Stripe and a custom domain handled. If it doesn’t end up live on your accounts, you get your money back. Not sure what’s likely to break? Their free 2-minute app check will tell you.
Either way, your app deserves better than a preview tab. Ship it.
