· 7 min read

    Move a Lovable or v0 App to Your Own Hosting

    What you get when you export a Lovable or v0 project, what breaks in the move, and a clear path to self-hosting your AI-built app.

    lovablev0self-hostingdeploymentvibe coding

    Moving an AI-built app off a platform's managed hosting is one of the most common questions from founders who started in Lovable or v0 by Vercel. The short answer is that the code is portable, but the infrastructure is not. This guide walks you through what you get, what breaks, and what to do about each.

    What you actually get on export

    Lovable gives you two routes to your code. The first is Git synchronization, which creates a private repository in your GitHub, GitLab, or Bitbucket account. According to Lovable's documentation, full-project .zip downloads are available on paid plans for users with edit access. Git sync is reported as available on every plan including Free, though that detail comes from a secondary source rather than the official docs, so check your plan page to confirm. To find the export option, go to your project settings and look for the Git or Download options, there is no button labelled "Export" on the main canvas.

    You can also export your database data separately: More → Database → Manage → Settings → Export project data. Do this before you do anything else.

    v0 generates a Next.js application using React, TypeScript, and Tailwind CSS. The normal publish path in the chat header deploys straight to Vercel, but v0 also supports syncing with GitHub so you can work locally or deploy elsewhere. The exported repository contains your application code and is yours to take anywhere. See the v0 quickstart for the publish flow.

    In both cases, what you receive is source code and, optionally, a data snapshot. You do not receive a configured server, secrets, domain records, or any managed service account.

    What breaks when you move

    This is the part most guides skip. The exported code preserves your UI and application logic. It does not automatically transfer any of the following:

    • Databases and data. Lovable Cloud uses Supabase-backed storage. Moving the frontend does not move the database; you need to export data separately and point your new deployment at a new Supabase project or another Postgres host.
    • Authentication. OAuth callback URLs, session secrets, and provider configurations must be recreated in your new environment.
    • Environment variables. Every API key, database connection string, and service credential must be copied to your new host's secret manager.
    • Storage buckets. File uploads stored in platform-managed buckets stay there until you migrate them.
    • Serverless functions and scheduled jobs. Platform-specific functions do not move automatically.
    • AI integrations and third-party connectors. Webhooks, payment integrations, and external API registrations will need their callback URLs updated.
    • Custom domains and HTTPS. You will reconfigure DNS and TLS on your new host.

    For v0, the boundary is similar: exported Next.js code works, but Vercel-managed runtime services, environment variables, and any Vercel-specific features used by the project must be rebuilt on the target platform. A Next.js project typically needs a Node.js server or Docker environment, not simple static-file hosting. A Lovable project may export as a Vite single-page application that builds to dist/, but check your package.json to confirm the framework before choosing a host. See this self-hosting guide for a detailed breakdown of the Lovable Cloud boundary.

    Shared hosting is usually not suitable. If your app is a Next.js application with server-side rendering or API routes, it needs a Node.js runtime. Standard shared hosting does not provide one. A Vite SPA that builds to static files can work on shared hosting, but only if the app has no server-side logic.

    Hosting options and when to use each

    HostGood forNotes
    Vercelv0 / Next.js projectsNative fit; free Hobby tier for personal/non-commercial use, Pro reported at $20/month, verify current limits on Vercel's pricing page
    NetlifyStatic or Jamstack frontendsSimple drag-and-drop or Git deploy for static builds
    Cloudflare PagesStatic frontends, edge functionsGlobal CDN, generous free tier
    SupabaseBackend / database migrationNatural target when moving Lovable Cloud data
    Render or RailwayNode.js / Docker appsGood for server-rendered Next.js outside Vercel
    VPS (DigitalOcean, Hetzner)Full control, Docker containersMost flexible; most setup work

    For v0 projects, Vercel is the path of least resistance because the generated application is designed for that ecosystem and the publish flow targets it directly. For Lovable projects, Vercel or Netlify handles the frontend, and Supabase handles the backend if you want to remove dependence on Lovable Cloud.

    If you want to compare your options more carefully, the Lovable vs Vercel comparison and the Lovable vs Netlify comparison lay out the tradeoffs side by side.

    Step-by-step migration order

    Following a structured order reduces the chance of losing data or locking users out.

    1. Export the code. For Lovable, sync to Git or download the .zip. For v0, sync to GitHub or download the repository.
    2. Export the data. Use Lovable's database export path before changing anything else. Back up any files in storage buckets.
    3. Inventory every dependency. Open your code and list every environment variable, every external service, every authentication provider, and every webhook URL. Nothing will work until these are recreated.
    4. Set up the backend and database. Create a new Supabase project (or your chosen Postgres host), run your schema migrations, and import your data export.
    5. Configure environment variables on your chosen host. Use its secret manager, not plain text files.
    6. Run the production build locally first. For a Vite project, npm run build produces the dist/ folder. For Next.js, npm run build followed by npm start confirms the app starts correctly.
    7. Deploy to a staging instance. Do not go straight to production. Confirm the build works on the target platform.
    8. Test authentication and all write operations. Sign in, create a record, upload a file, trigger a payment flow, whatever your app does, do it on staging.
    9. Update OAuth callback URLs and webhooks to point at your new domain.
    10. Switch DNS and production traffic. Update your domain registrar, wait for propagation, and confirm HTTPS is active.

    For a deeper walkthrough of generic self-hosting steps for AI-built apps, this deployment guide covers the server-side configuration in detail. The dev.to hosting guide also includes specific config examples for Lovable and v0 projects.

    If you need ready-made starting points that already have the export-friendly structure built in, the Lovable templates and v0 templates on AppVibed give you source code you own from the start.

    Common questions

    Where do I find the export or download option in Lovable?

    There is no button labelled "Export" on the main canvas. Look in your project settings for Git synchronization (connects to GitHub, GitLab, or Bitbucket) or a download option. The .zip download requires a paid plan. Database data is exported separately via More → Database → Manage → Settings → Export project data.

    Can I host my Lovable or v0 app on normal shared hosting?

    Only if the app builds to static files and has no server-side logic. A Lovable project may be a Vite SPA that builds to a dist/ folder, which shared hosting can serve. A v0 project is typically a Next.js application that needs a Node.js runtime, which most shared hosts do not provide. Check your package.json to confirm before choosing a host.

    Does exporting the code also move my database and user accounts?

    No. The export contains application code, not managed infrastructure. You must export your database data separately, migrate it to a new host, and recreate all authentication configuration, environment variables, and third-party integrations manually.

    What is the easiest hosting target for a v0 project?

    Vercel. The v0 publish flow targets Vercel directly, and the generated Next.js application is built for that environment. Vercel offers a Hobby tier reported as free for personal or non-commercial use. Check current quotas and pricing on Vercel's pricing page before committing, as figures change.

    Has anyone successfully built and launched a static export from a Lovable project?

    Yes, but results depend on how much of the app relies on Lovable Cloud services. The UI and client-side logic export cleanly. The parts that break are backend-dependent features, authentication, database reads and writes, file storage, and AI integrations. Teams that have done it successfully followed the inventory-first approach: list every external dependency before touching the deployment.