In short.
This is Lovable's deployment and migration guide for teams moving an app to their own infrastructure or provider accounts, with the catch that operational responsibility transfers to them and several services require manual replacement. It covers source access, two application stacks, managed hosting, containers, Supabase migration and final traffic switching. Its most consequential details concern server hosting, build-time configuration, database restore conflicts and replacing Lovable connector and AI calls. No instructions were executed, so deployment success, migration duration and operating costs are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete selected page at [https://docs.lovable.dev/tips-tricks/external-deployment-hosting.md], captured November 24, 2026. It includes both application stacks, source access, hosting examples, backend migration, final switching steps, and notices concerning lockfiles, older Nitro configurations, restore conflicts, generated secrets and permanent backend deletion. Linked pages and external provider instructions are excluded. No application, command, configuration, deployment, restore or migration was executed; operational outcomes remain untested.
The overview
identity
Deploying and hosting outside Lovable is a first-party technical guide at [https://docs.lovable.dev/tips-tricks/external-deployment-hosting.md]. It explains how to move application hosting, backend services or both while optionally retaining Lovable for development and previews.
The resource is documentation rather than a deployment service or migration utility. Its central distinction is between hosting, where an application runs, and deployment, how a build reaches that environment.
assessment
The guide is useful for deciding how much of a Lovable application actually needs to move. It separates frontend hosting from backend migration and explains why exporting source code does not also transfer database records, stored files, credentials or connector connections.
Its practical strength is identifying failure points that a simple deployment recipe can miss: server features on a static host, authentication redirects, incomplete database restores and writes arriving after an export. Treat it as a migration planning reference with adaptable examples; it does not establish that a particular application or destination will work.
users
The intended readers are Lovable app owners and developers who need their own deployment pipeline, a specified hosting or data location, or infrastructure under their organization's control. A team can move only its application hosting and continue using the built-in backend.
Beginners can use the decision paths to understand the choices, but implementation involves repositories, environment variables and hosting configuration. Backend migration additionally involves SQL, authentication, storage and operational decisions. Self-hosted Supabase requires the ability to maintain those services; the guide does not establish compliance certification.
capabilities
The page covers obtaining source through Git sync or a downloaded snapshot, deploying TanStack Start applications, hosting older React + Vite builds, and using managed platforms, object storage with a CDN, containers or virtual machines where appropriate.
Its backend walkthrough covers schema migrations, database exports, migrated user accounts, authentication providers, storage files, function secrets, Edge Functions and scheduled jobs. It also identifies connector and AI calls that must be replaced when the backend leaves Lovable, and describes a final export and traffic switch.
Using it
requirements
Start with access to the application's source and a destination compatible with its stack. Git sync supports ongoing repository deployments; a downloaded archive supplies a snapshot. The npm examples assume package-lock.json. Projects with only bun.lock need a consistent Bun installation path or a deliberately generated npm lockfile.
The deployment examples use Node.js 22. TanStack Start needs a host capable of running its server output and the nitro package installed. Older React + Vite apps need static hosting with a fallback for client-side routes. Backend migration requires separate access to exports, stored files, provider credentials and secrets; a standalone PostgreSQL database does not replace Supabase's other services.
mechanism
TanStack Start applications use Nitro to adapt server output to a hosting platform through a preset. The guide describes automatic detection for platforms including Vercel, Netlify and Cloudflare Pages. For a Node.js server, the node-server preset produces a standalone .output directory whose entry point is .output/server/index.mjs. Object storage or a CDN alone cannot execute its server features.
Older React + Vite applications produce static files in dist/. Their host must return index.html for client-side routes. Both stacks embed VITE_ browser configuration during the build; TanStack Start also reads server environment variables at runtime.
Backend migration combines schema preparation with separate transfers and configuration. Supabase migrations follow filename timestamps, while Drizzle migrations follow meta/_journal.json. The full database export is a zstd-compressed PostgreSQL custom-format archive requiring suitable pg_restore tools and a restore plan that accounts for existing destination objects.
setup
Check package.json for @tanstack/react-start to identify the stack, then follow its deployment path. The guide recommends confirming a local run before adding hosting configuration. For repository deployments, choose the deployment branch, configure the build command and platform output settings, set the environment variables the application reads, and allow the new authentication redirect URLs.
For backend migration, prepare the destination while the existing application continues running. Apply the appropriate migrations, restore selected database contents, configure sign-in, copy storage files, set secrets and deploy functions. Compare scheduled jobs and coordinate their activation to prevent duplicate execution. Point a separate test deployment at the destination before changing the Lovable project's .env and supabase/config.toml.
example
For a team moving TanStack Start application hosting while keeping the built-in backend, the documented Node.js path starts by ensuring nitro is installed and setting VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY before building. The build command is NITRO_PRESET=node-server npm run build. The resulting server starts with node .output/server/index.mjs using Node.js 22.
The guide specifies port 3000 by default, with PORT and HOST available to change it. Set SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY and any server secrets in the running environment, and put the server behind an HTTPS reverse proxy. Verification should include a server-rendered page, a server function, sign-in and required data operations. This is an illustrative procedure from the documentation; it was not executed.
Assessment & evidence
limitations
Moving services transfers responsibility for availability, configuration, logs, security and recovery to the operator. Lovable cannot monitor or debug infrastructure it does not control. Older build configurations may need updates even when Nitro is installed, and generated Docker files require independent verification and replacement of placeholder secrets.
Backend migration is not automatic. Connector connections are not exported, AI calls need replacement with an independent provider account when the backend moves, and authentication providers and secrets need reconfiguration. The guide says restored account password hashes can preserve passwords in Supabase, but existing sessions do not carry over.
A full restore can conflict with an initialized Supabase database; adding pg_restore --clean can drop restored objects. The documented export cadence is one export every 24 hours. A final copy therefore needs a coordinated pause in writes or an incremental migration approach. Actual downtime, completeness and performance are not assessed.
reasoning
Moving only application hosting is the narrower path described for a team whose requirement concerns its deployment pipeline or host. Keeping the existing backend avoids the additional database, authentication, storage and integration work documented for backend migration.
A backend move is relevant when control over data or backend services is the requirement. The guide presents managed Supabase as the closest architectural match and self-hosted Supabase as the path with greater operational responsibility. These tradeoffs support choosing the smallest move that meets the requirement; they do not demonstrate lower costs, better performance or compliance.
alternatives
Keeping Lovable hosting and its built-in backend is the page's baseline when they meet the application's requirements. Moving application hosting to a managed platform can preserve Lovable development and the existing backend. Older static applications also have object-storage-and-CDN options; TanStack Start needs a server-capable destination.
For backend ownership, the documented alternatives are managed Supabase and self-hosted Supabase. Other backend platforms may require equivalent authentication, storage and backend services to be implemented. The page does not provide a comparative evaluation of their pricing, reliability or migration effort.
evidence
The evidence is the complete Lovable documentation page at [https://docs.lovable.dev/tips-tricks/external-deployment-hosting.md]. It includes configuration examples, migration sequences, expected outcomes and operational warnings. Linked provider documentation, ownership pages and pricing pages are outside this assessment.
The page supports an account of the documented procedure, rather than proof of successful execution. No builds, containers, deployments, database restores, authentication flows or production cutovers were run. Independent performance measurements, migration success rates and operating-cost results are unavailable.
Access & freshness
costs
The page states that Git sync is available on all Lovable plans, while Download codebase requires a paid plan. Enterprise administrators can restrict downloads. It supplies no subscription prices, destination hosting prices or migration cost estimates, so total costs and potential savings are unknown.
External hosting and service providers bill under their own plans. Exporting code or moving a domain does not cancel a Lovable subscription or ongoing Cloud usage. Remaining Cloud, AI and connector usage managed through Lovable can continue consuming workspace credits until those dependencies are changed.
rights
The guide describes access to application source, configuration and migration files through Git sync or a code download. These exports do not include database records or stored files. Enterprise download restrictions may affect who can obtain a snapshot.
The supplied page does not establish a redistribution license for the documentation or its embedded examples, or the license terms of an application's dependencies. It links separate ownership information, but that page is outside the supplied scope. Broader ownership and reuse rights therefore remain unknown.
freshness
The supplied page was captured on November 24, 2026. It identifies TanStack Start applications as those created from May 13, 2026, and distinguishes them from older React + Vite applications. It also warns that older build configurations can behave differently. No publication or last-updated date is supplied.
Node.js 22, hosting settings, export cadence and service behavior are documented in this captured version. Their present compatibility with a particular repository and provider is not independently verified. The guide itself recommends checking generated runtime versions and server entry paths against actual build output.
actions
Identify the requirement driving the move, confirm the application's stack, and choose whether to move hosting, backend services or both. Inventory environment variables, authentication providers, files, functions, scheduled jobs, connector calls and AI calls. Prepare a temporary deployment and verify direct navigation, sign-in, reads, writes and uploads; include server rendering and server functions for TanStack Start.
For a complete exit, rehearse the restore and measure its duration before scheduling the final write pause. Include scheduled jobs, webhooks and integrations in that pause, restore the final data and changed files, then switch traffic. A domain change leaves the lovable.app deployment available until it is unpublished. Download and verify exports and files before permanently removing the old backend, and review subscriptions and usage separately.
