AI app builders make it easy to get something live. At some point, though, you'll want it somewhere you control: on your own domain, on a host you chose, with the code in your own repository. Maybe the builder's pricing no longer fits, maybe you want to keep editing in a code editor, or maybe you just don't want your only copy of the app to live inside one vendor's product.
This guide walks through the process in the same order for any builder: get the code out, put it on a host, connect a domain, and fix the things that break. It stays tool-agnostic. Where the builders differ, we say so, and we tell you what we couldn't verify. Export menus change often, so check each tool's current docs for the exact clicks.
First, Decide How Much You Want to Leave
You don't have to leave all at once. There are three levels:
- Keep a copy. Connect the project to GitHub and keep building in the builder. If the vendor changes pricing or shuts down, you already have the code. This takes five minutes and is worth doing for every project you care about.
- Host it yourself, keep editing in the builder. Some builders sync two ways with GitHub, so your host deploys from the repo while you keep prompting in the builder. Changes flow in both directions.
- Leave completely. The repo becomes the source of truth, and you edit it in a code editor or with an AI coding tool. You lose the builder's one-click publishing, so this is the real commitment.
Most people should start at level 1 and move up only when they have a reason. If you're unsure whether you've hit that point, read When to Stop Vibe Coding and Start Writing Code.
Step 1: Get the Code Into GitHub
GitHub is the usual hub: it holds your code, keeps history, and nearly every host can deploy from it.
How each tool handles this, based on their documentation:
- Lovable supports two-way sync with GitHub: edits in Lovable are pushed to your default branch, and changes pushed to GitHub come back into Lovable. Linking a project creates a new repository. Deleting that repository stops the sync. Paid plans can also download the codebase directly from the code editor.
- v0 syncs with GitHub in both directions, and its docs warn that once a repo is connected it holds the authoritative copy of the code, which may be unrecoverable if you delete the repo.
- Bolt can push to GitHub and export a ZIP of the project. The menu labels have varied between versions, so look in the project menu and toolbar rather than following an old screenshot.
- Replit lets you download the project as a ZIP from the file tree menu or push to GitHub. Pushing keeps your commit history; a ZIP only does if it includes the
.gitfolder. Replit's docs note that files ignored by.gitignoreand uncommitted changes stay behind.
A few things to know whichever tool you use:
- Check what actually landed. Open the repo on GitHub and look. Is there a
package.json? A README? A build script? A repo you can't build is not a backup. - A ZIP is a snapshot, not a link. A download won't update itself. If you keep building in the tool, you'll need to export again or use a two-way sync.
- Secrets don't travel. API keys and environment variables normally live in the builder's settings, not in the code. Third-party guides report that databases and secrets aren't included in a Replit ZIP, and the same logic applies elsewhere: write down every environment variable the app uses before you leave.
Step 2: Pick a Host
Your app is either static (HTML, CSS and JavaScript that run in the browser, talking to an external backend) or it runs server code. This decides where it can live.
- Most builder apps are front ends plus a hosted backend. If yours talks to Supabase, Firebase or another backend service, a static host is enough.
- If the app runs its own server (server actions, API routes, background jobs), you need a host that supports server code. A static export will break server-side features. One third-party v0 guide notes that exporting a Next.js app as static requires switching off image optimization and loses server features.
Common options for static and front-end deployments are Vercel, Netlify and Cloudflare Pages. All three can deploy straight from a GitHub repo, so every push can trigger a new deploy. Netlify and Vercel both publish guides for importing apps from Bolt and from v0, and Vercel documents a Lovable integration. VibeCompare itself is a static site on Cloudflare Pages.
The basic flow on any of them:
- Connect your GitHub account and import the repository.
- Let the host detect the framework. Confirm the build command and output folder.
- Add your environment variables.
- Deploy, then open the temporary URL the host gives you and click through the app.
Don't point your real domain anywhere until the temporary URL works.
Step 3: Add Environment Variables
This is where most first deployments fail. The app works in the builder because the builder has your keys. On a new host it has none, so login, database calls or payments silently break.
- Copy every variable from the builder's settings into the host's environment settings.
- Keep secret keys out of the repo. If you've ever committed a
.envfile, rotate those keys. - Watch for variables a framework exposes to the browser (prefixed names such as
VITE_orNEXT_PUBLIC_). Those are public by design, so only put keys there that are meant to be public. - Redeploy after changing variables, because most hosts only apply them to new builds.
Our security guide covers what should and shouldn't be exposed.
Step 4: Connect Your Custom Domain
- Add the domain in your host's dashboard. It will show the DNS records to create.
- At your domain registrar or DNS provider, add those records, usually an A record or CNAME. You need control of the domain's DNS to do this.
- Wait for DNS to propagate, which can take anywhere from minutes to hours.
- Once verified, the host issues an HTTPS certificate automatically.
Decide whether www.example.com or example.com is your main address and redirect the other one, so you don't split traffic across two URLs.
If the domain currently points at the builder's own hosting, expect a brief overlap. Switch DNS when the new deploy is already working.
Step 5: Fix the Things That Break
Moving hosts breaks the same few things in nearly every project.
Login and OAuth redirects. Auth providers only accept redirects to URLs you've approved. If you use Supabase Auth, set the Site URL to your production domain and add your domain to the Redirect URLs allowlist. Supabase advises setting the exact redirect path for production rather than a wide wildcard. For Google or GitHub sign-in, also check the provider's own console for allowed callback addresses.
Email links. Password-reset and confirmation emails use the same Site URL setting. If they still point at the old address, fix it there.
Payments and webhooks. Stripe and similar services send events to a specific URL. If the app's address changed, update the webhook endpoint and its signing secret, and test with a real test-mode payment.
CORS and allowed origins. If your backend only accepts requests from the old URL, add the new domain.
Hard-coded URLs. Search the code for the builder's domain (for example a .lovable.app or similar preview address). AI-generated code sometimes bakes those in.
Analytics and search. Add the new domain to Google Search Console, and set up redirects from the old URL if it was ever public.
What You Take With You, and What You Don't
Moving the front end does not move everything.
| Part of your app | Moves with the code? |
|---|---|
| Front-end code | Yes, via GitHub or export |
| Database and stored files | No, they stay with your backend provider (for example Supabase) |
| Environment variables and secrets | No, re-enter them on the new host |
| The builder's built-in hosting and deploy button | No, you replace it with your host's deploy flow |
| Chat history and prompts | Usually no, so save anything you want to keep |
That second row matters most for cost. If your database lives in Supabase, you pay Supabase wherever you host the front end. The Hidden Costs of Vibe Coding explains the full bill.
A Pre-Move Checklist
Before you switch DNS:
- Code is in a GitHub repo you own, and it builds
- Every environment variable is documented and copied to the new host
- The app works end to end on the host's temporary URL
- Login, email links and payments work on the new domain
- Redirect and webhook URLs are updated
- You know where your database lives and who bills you for it
- You've saved anything valuable from the builder (prompts, specs, notes)
When It Isn't Worth It
Skip this if the app is a throwaway prototype, if the builder's hosting and custom-domain feature already covers your needs, or if you plan to keep prompting in the builder for months. A GitHub backup (level 1 above) costs almost nothing. Full migration is a project, and it only pays off when you need control the builder can't give you.
Next Steps
- Read: When to Stop Vibe Coding and Start Writing Code — deciding whether leaving the builder is the right call
- Read: The Hidden Costs of Vibe Coding — what hosting, databases and domains add up to
- Read: Vibe Coding Security — secrets, keys and what not to expose
- Read: Common Vibe Coding Mistakes — the checks that prevent most deployment surprises
- Compare AI app builders — if you're weighing which tool exports best
