Self-hosting: Run your Lovable Cloud project anywhere
Deploy and manage your Lovable Cloud projects on your own infrastructure
Lovable Cloud is designed to be the easiest, fastest, and most enjoyable place to build. Migration is possible because we want you to stay by choice, not necessity.This guide explains how you can self-host and move your Lovable Cloud project to another provider, for example Supabase.
Key principles
You own your code.
Use our GitHub integration to export your code anytime. Clone, export, and self-host without restriction.
You own your data.
Your database, storage, and configurations can be exported or migrated to another provider.
Lovable is built on open source technologies.
Everything runs on open standards and open-source technologies. No proprietary frameworks, no hidden dependencies.
We earn your trust through quality, not control.Lovable Cloud is designed for speed, simplicity, and reliability. You can build, host, and scale confidently, knowing you can take your project with you.
Migration overview
App components
Migration method
Notes
Database schema
Automatic via SQL migrations
Includes tables, columns, indexes, RLS policies, functions, triggers
Storage buckets
Automatic via SQL migrations
Includes access policies
Authentication providers
Manual
Reconfigure auth (for example, Google OAuth, GitHub) in your new hosting environment
Environment variables and secrets
Manual
Reconfigure any API keys, tokens, or credentials for external services (for example, Stripe) in your new hosting environment
Data (table contents)
Manual
Export/import as CSV
Storage files
Manual
Download/upload manually
User accounts
Manual, partial
You can export user data from the database, but you cannot export user passwords, so you need to trigger a password reset flow. We recommend you plan the migration before onboarding real users.
Example: Move your Lovable Cloud project to Supabase
You can connect to any backend solution with some technical knowledge. The below steps guide you how to migrate your Lovable Cloud project to Supabase. For more information on Supabase specific steps, see Supabase Documentation.
After migrating your project to your own Supabase instance, you must continue development in your local environment or a preferred IDE. Your project in Lovable remains connected to the original Lovable Cloud database, so any changes made in Lovable after migration will not sync with your new Supabase setup.
1. Create a new Supabase project
Follow the steps below to create a new Supabase project.
Replace Lovable Cloud project ID with new Supabase project ID in your supabase/config.tomlfile.
In your Lovable project, go to Code.
Locate supabase/config.toml file.
Update Lovable Cloud project ID with new Supabase project ID:
project_id = "your-new-project-id"
Save changes.
4. Run database migrations
Each Lovable Cloud project includes SQL migration files in the supabase/migrations/ folder.Run them in chronological order based on the timestamp in the filename. They are ordered from earliest to latest. For example:
20251008155159_[hash].sql # first - earliest20251008155215_[hash].sql # second
For each migration file in your Lovable Cloud project, follow the steps below:
Copy the entire SQL content from each migration file.
Paste it into the SQL editor in your new Supabase project.
Run and wait for success message.
If a migration fails, check the migration order, table dependencies, and SQL syntax errors.
5. Export and import your data
Export the data from your Lovable Cloud project and then manually import it to your new Supabase project.Export each table with data from your Lovable Cloud project:
Go to Cloud → Database → Table.
Click Export CSV.
Save the file.
Import CSV files to corresponding tables in your new Supabase project:
Go to Table Editor.
For each table, click Insert → Import data from CSV.
Map columns correctly.
Click Import data.
6. Reconfigure authentication
If your Lovable Cloud project requires authentication, you need to manually reconfigure auth providers in your new Supabase project.
In your new Supabase project, go to Authentication → Sign In / Providers.
Enable and configure each provider.
In your OAuth app settings (for example, Google Console, GitHub),
update redirect URLs to use your new Supabase project URL.
7. Migrate storage files
Download any files from storage buckets in your Lovable Cloud project and upload them to your new Supabase project.
In your Lovable project, go to Cloud → Storage.
Download files from your storage buckets.
In Supabase, go to Storage and upload files to corresponding buckets.
8. Set up environment variables and secrets
If you are using any external services (for example, Stripe) in your Lovable Cloud project, you need to manually reconfigure API keys, tokens, and credentials in your new Supabase project.
In your new Supabase project, go to Edge Functions → Manage Secrets.
Add any API keys or external service credentials.
Save changes.
9. Verify everything works
When you are done with all off the steps, your app runs entirely on your Supabase backend. Make sure that everything works, for example:
App loads without errors
You can create and read database records
Authentication works
Storage uploads/downloads succeed
Advanced: CLI migration option
For developers comfortable with the command line:
# 1. Install Supabase CLInpm install -g @supabase/cli# orbrew install supabase/tap/supabase# 2. Update config files (.env + supabase/config.toml)# 3. Link to your new Supabase projectsupabase loginsupabase link --project-ref your-new-project-id# 4. Push all migrationssupabase db push# 5. Verify schemasupabase db diff
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lovable Documentation","description":"Lovable Documentation — Build full-stack websites with AI using natural language. Explore Lovable features, integrations, tutorials, and best practices.","colors":{"primary":"#0095FF","light":"#1AA3FF","dark":"#0084E6"},"logo":{"light":"https://mintcdn.com/generaltranslation-d8a08cd1/At48MABj-G93zw7Y/assets/logo/logoblack.svg?fit=max\u0026auto=format\u0026n=At48MABj-G93zw7Y\u0026q=85\u0026s=ca1f70ffb8cc99cf980d91ff6495d89f","dark":"https://mintcdn.com/generaltranslation-d8a08cd1/At48MABj-G93zw7Y/assets/logo/logowhite.svg?fit=max\u0026auto=format\u0026n=At48MABj-G93zw7Y\u0026q=85\u0026s=fef50f97d61a559e9cd2e1e8995e6350","href":"https://lovable.dev/"},"favicon":"/assets/logo/favicon.ico","navbar":{"links":[{"label":"Support","icon":"message","href":"https://lovable.dev/support"},{"label":"Blog","icon":"blog","href":"https://lovable.dev/blog"}]},"footer":{"socials":{"x":"https://x.com/Lovable","github":"https://github.com/lovablelabs","linkedin":"https://linkedin.com/company/lovable-dev","youtube":"https://youtube.com/@lovable","discord":"https://discord.gg/lovable-dev","reddit":"https://www.reddit.com/r/lovable/"}},"seo":{"metatags":{"og:image":"/assets/logo/opengraph-image.png","canonical":"https://docs.lovable.dev"},"indexing":"all"},"contextual":{"options":["copy"]},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"introduction/welcome"},{"language":"es","href":"es/introduction/welcome"},{"language":"ja","href":"ja/introduction/welcome"},{"language":"zh","href":"zh/introduction/welcome"},{"language":"fr","href":"fr/introduction/welcome"},{"language":"de","href":"de/introduction/welcome"},{"language":"pt-BR","href":"pt-BR/introduction/welcome"},{"language":"it","href":"it/introduction/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"generaltranslation-d8a08cd1","hasAudioNarration":false,"actualSubdomain":"generaltranslation-d8a08cd1","customDomains":["lovable.generaltranslation.app"],"gitSource":{"type":"github","owner":"gt-onboarding","repo":"lovable","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10c7a59ffae5051c40799f"},"entitlements":{},"buildId":"6ae942e94c7ebc4d7c1907d3:success","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"en","tag":"Integrations","count":22},{"language":"de","tag":"Integrationen","count":22},{"language":"es","tag":"Integraciones","count":22},{"language":"fr","tag":"Intégrations","count":22},{"language":"it","tag":"Integrazioni","count":22},{"language":"ja","tag":"連携","count":22},{"language":"pt-BR","tag":"Integrações","count":22},{"language":"zh","tag":"集成","count":22},{"language":"en","tag":"Features","count":16},{"language":"de","tag":"Funktionen","count":16},{"language":"es","tag":"Funciones","count":16},{"language":"fr","tag":"Fonctionnalités","count":16},{"language":"it","tag":"Funzionalità","count":16},{"language":"ja","tag":"機能","count":16},{"language":"pt-BR","tag":"Funcionalidades","count":16},{"language":"zh","tag":"功能特性","count":16},{"language":"en","tag":"Tips \u0026 Tricks","count":11},{"language":"de","tag":"Tipps \u0026 Tricks","count":11},{"language":"es","tag":"Consejos y trucos","count":11},{"language":"fr","tag":"Conseils et astuces","count":11},{"language":"it","tag":"Consigli e trucchi","count":11},{"language":"ja","tag":"ヒントとテクニック","count":11},{"language":"pt-BR","tag":"Dicas e truques","count":11},{"language":"zh","tag":"提示和技巧","count":11},{"language":"en","tag":"Introduction","count":4},{"language":"de","tag":"Einführung","count":4},{"language":"es","tag":"Introducción","count":4},{"language":"fr","tag":"Introduction","count":4},{"language":"it","tag":"Introduzione","count":4},{"language":"ja","tag":"はじめに","count":4},{"language":"pt-BR","tag":"Introdução","count":4},{"language":"zh","tag":"简介","count":4},{"language":"en","tag":"Prompt engineering","count":3},{"language":"de","tag":"Engineering von Eingabeaufforderungen","count":3},{"language":"es","tag":"Ingeniería de instrucciones","count":3},{"language":"fr","tag":"Conception de Prompt","count":3},{"language":"it","tag":"Ingegneria delle istruzioni","count":3},{"language":"ja","tag":"プロンプトエンジニアリング","count":3},{"language":"pt-BR","tag":"Engenharia de Prompts de IA","count":3},{"language":"zh","tag":"提示工程","count":3},{"language":"en","tag":"About integrations","count":2},{"language":"en","tag":"Use cases","count":2},{"language":"de","tag":"Über Integrationen","count":2},{"language":"de","tag":"Anwendungsfälle","count":2},{"language":"es","tag":"Sobre las integraciones","count":2},{"language":"es","tag":"Casos de uso","count":2},{"language":"fr","tag":"À propos des intégrations","count":2},{"language":"fr","tag":"Cas d’utilisation","count":2},{"language":"it","tag":"Informazioni sulle integrazioni","count":2},{"language":"it","tag":"Casi d'uso","count":2},{"language":"ja","tag":"連携について","count":2},{"language":"ja","tag":"ユースケース","count":2},{"language":"pt-BR","tag":"Sobre as integrações","count":2},{"language":"pt-BR","tag":"Casos de uso","count":2},{"language":"zh","tag":"关于集成","count":2},{"language":"zh","tag":"应用场景","count":2},{"language":"en","tag":"Changelog","count":1},{"language":"en","tag":"Glossary","count":1},{"language":"de","tag":"Versionshinweise","count":1},{"language":"de","tag":"Glossar","count":1},{"language":"es","tag":"Registro de cambios","count":1},{"language":"es","tag":"Glosario","count":1},{"language":"fr","tag":"Journal des mises à jour","count":1},{"language":"fr","tag":"Glossaire","count":1},{"language":"it","tag":"Cronologia delle modifiche","count":1},{"language":"it","tag":"Glossario","count":1},{"language":"ja","tag":"変更履歴","count":1},{"language":"ja","tag":"用語集","count":1},{"language":"pt-BR","tag":"Registro de alterações","count":1},{"language":"pt-BR","tag":"Glossário","count":1},{"language":"zh","tag":"更新日志","count":1},{"language":"zh","tag":"术语表","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"assets/css/styles.css","content":".supabase{color:#59cf8c}"}]}
{"page":{"pagePath":"tips-tricks/self-hosting","slug":"/tips-tricks/self-hosting","pageMetadata":{"title":"Self-hosting: Run your Lovable Cloud project anywhere","sidebarTitle":"Self-hosting","description":"Deploy and manage your Lovable Cloud projects on your own infrastructure","icon":"door-open","href":"/tips-tricks/self-hosting","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Deploy and manage your Lovable Cloud projects on your own infrastructure\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,br:`br`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://docs.lovable.dev/features/cloud`,children:`Lovable Cloud`}),` is designed to be the easiest, fastest, and most enjoyable place to build. Migration is possible because we want you to stay by choice, not necessity.`]}),`\n`,_jsxs(_components.p,{children:[`This guide explains how you can self-host and move your Lovable Cloud project to another provider, for example `,_jsx(_components.a,{href:`http://supabase.com/`,children:`Supabase`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`key-principles`,children:`Key principles`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`You own your code`}),`. `,_jsx(_components.br,{}),`\n`,`Use our `,_jsx(_components.a,{href:`https://docs.lovable.dev/integrations/github`,children:`GitHub integration`}),` to export your code anytime. Clone, export, and self-host without restriction.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`You own your data`}),`. `,_jsx(_components.br,{}),`\n`,`Your database, storage, and configurations can be exported or migrated to another provider.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Lovable is built on open source technologies`}),`. `,_jsx(_components.br,{}),`\n`,`Everything runs on open standards and open-source technologies. No proprietary frameworks, no hidden dependencies.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`We earn your trust through quality, not control`}),`.`]}),`\n`,_jsx(_components.p,{children:`Lovable Cloud is designed for speed, simplicity, and reliability. You can build, host, and scale confidently, knowing you can take your project with you.`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`migration-overview`,children:`Migration overview`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`App components`})}),_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Migration method`})}),_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Notes`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Database schema`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Automatic via SQL migrations`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Includes tables, columns, indexes, RLS policies, functions, triggers`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Storage buckets`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Automatic via SQL migrations`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Includes access policies`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Authentication providers`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Manual`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Reconfigure auth (for example, Google OAuth, GitHub) in your new hosting environment`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Environment variables and secrets`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Manual`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Reconfigure any API keys, tokens, or credentials\\xA0for external services (for example, Stripe) in your new hosting environment`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Data (table contents)`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Manual`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Export/import as CSV`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Storage files`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Manual`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Download/upload manually`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`User accounts`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Manual, partial`}),_jsx(_components.td,{style:{textAlign:`left`},children:`You can export user data from the database, but you cannot export user passwords, so you need to trigger a password reset flow. We recommend you plan the migration before onboarding real users.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`example-move-your-lovable-cloud-project-to-supabase`,children:`Example: Move your Lovable Cloud project to Supabase`}),`\n`,_jsxs(_components.p,{children:[`You can connect to any backend solution with some technical knowledge. The below steps guide you how to migrate your Lovable Cloud project to Supabase. For more information on Supabase specific steps, see `,_jsx(_components.a,{href:`https://supabase.com/docs`,children:`Supabase Documentation`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`After migrating your project to your own Supabase instance, you must continue development in your local environment or a preferred IDE. Your project in Lovable remains connected to the original Lovable Cloud database, so any changes made in Lovable after migration will `,_jsx(_components.strong,{children:`not`}),` sync with your new Supabase setup.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`1-create-a-new-supabase-project`,children:`1. Create a new Supabase project`}),`\n`,_jsx(_components.p,{children:`Follow the steps below to create a new Supabase project.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.a,{href:`https://supabase.com`,children:`supabase.com`}),` → `,_jsx(_components.strong,{children:`New project`})]}),`\n`,_jsxs(_components.li,{children:[`Choose your organization and fill in:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Project name:`}),` any name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Database password:`}),` strong password`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Region:`}),` closest to your users`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Create new project`}),` and wait around 2 minutes for the project to initialize.`]}),`\n`,_jsxs(_components.li,{children:[`From your new Supabase project settings, `,_jsx(_components.strong,{children:`save these values`}),`:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`Project ID`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Public API Key`}),` (anon key)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Project URL`}),`: `,_jsx(_components.code,{children:`https://[your-project-id].supabase.co`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`2-update-environment-variables`,children:`2. Update environment variables`}),`\n`,_jsxs(_components.p,{children:[`Replace Lovable Cloud values with new Supabase credentials in your `,_jsx(_components.code,{children:`.env`}),` file.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In your Lovable project, go to `,_jsx(_components.strong,{children:`Code.`})]}),`\n`,_jsxs(_components.li,{children:[`Locate `,_jsx(_components.code,{children:`.env`}),` file.`]}),`\n`,_jsx(_components.li,{children:`Update Lovable Cloud values with new Supabase credentials:`}),`\n`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VITE_SUPABASE_PROJECT_ID=\"your-new-project-id\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VITE_SUPABASE_PUBLISHABLE_KEY=\"your-new-anon-key\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`VITE_SUPABASE_URL=\"https://your-new-project-id.supabase.co\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsx(_components.li,{children:`Save changes.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`3-update-supabase-configuration`,children:`3. Update Supabase configuration`}),`\n`,_jsxs(_components.p,{children:[`Replace Lovable Cloud project ID with new Supabase project ID in your `,_jsx(_components.code,{children:`supabase/config.toml`}),`file.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In your Lovable project, go to `,_jsx(_components.strong,{children:`Code.`})]}),`\n`,_jsxs(_components.li,{children:[`Locate `,_jsx(_components.code,{children:`supabase/config.toml`}),` file.`]}),`\n`,_jsx(_components.li,{children:`Update Lovable Cloud project ID with new Supabase project ID:`}),`\n`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`project_id = \"your-new-project-id\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsx(_components.li,{children:`Save changes.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`4-run-database-migrations`,children:`4. Run database migrations`}),`\n`,_jsxs(_components.p,{children:[`Each Lovable Cloud project includes SQL migration files in the `,_jsx(_components.code,{children:`supabase/migrations/`}),` folder.`]}),`\n`,_jsxs(_components.p,{children:[`Run them in `,_jsx(_components.strong,{children:`chronological order`}),` based on the timestamp in the filename. They are ordered from earliest to latest. For example:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`20251008155159_[hash].sql # first - earliest`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`20251008155215_[hash].sql # second`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`For each migration file in your Lovable Cloud project, follow the steps below:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Copy the entire SQL content from each migration file.`}),`\n`,_jsxs(_components.li,{children:[`Paste it into the `,_jsx(_components.strong,{children:`SQL editor`}),` in your new Supabase project.`]}),`\n`,_jsx(_components.li,{children:`Run and wait for success message.`}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`If a migration fails, check the migration order, table dependencies, and SQL syntax errors.`})}),`\n`,_jsx(Heading,{level:`3`,id:`5-export-and-import-your-data`,children:`5. Export and import your data`}),`\n`,_jsx(_components.p,{children:`Export the data from your Lovable Cloud project and then manually import it to your new Supabase project.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Export each table with data from your Lovable Cloud project:`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.strong,{children:`Cloud → Database → Table`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Export CSV`}),`.`]}),`\n`,_jsx(_components.li,{children:`Save the file.`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Import CSV files to corresponding tables in your new Supabase project:`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.strong,{children:`Table Editor`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`For each table, click `,_jsx(_components.strong,{children:`Insert → Import data from CSV`}),`.`]}),`\n`,_jsx(_components.li,{children:`Map columns correctly.`}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Import data`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`6-reconfigure-authentication`,children:`6. Reconfigure authentication`}),`\n`,_jsx(_components.p,{children:`If your Lovable Cloud project requires authentication, you need to manually reconfigure auth providers in your new Supabase project.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In your new Supabase project, go to `,_jsx(_components.strong,{children:`Authentication → Sign In / Providers`}),`.`]}),`\n`,_jsx(_components.li,{children:`Enable and configure each provider.`}),`\n`,_jsxs(_components.li,{children:[`In your OAuth app settings (for example, Google Console, GitHub),`,_jsx(_components.br,{}),`\n`,`update `,_jsx(_components.strong,{children:`redirect URLs`}),` to use your new Supabase project URL.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`7-migrate-storage-files`,children:`7. Migrate storage files`}),`\n`,_jsx(_components.p,{children:`Download any files from storage buckets in your Lovable Cloud project and upload them to your new Supabase project.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In your Lovable project, go to `,_jsx(_components.strong,{children:`Cloud → Storage`}),`.`]}),`\n`,_jsx(_components.li,{children:`Download files from your storage buckets.`}),`\n`,_jsxs(_components.li,{children:[`In Supabase, go to `,_jsx(_components.strong,{children:`Storage`}),` and upload files to corresponding buckets.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`8-set-up-environment-variables-and-secrets`,children:`8. Set up environment variables and secrets`}),`\n`,_jsx(_components.p,{children:`If you are using any external services (for example, Stripe) in your Lovable Cloud project, you need to manually reconfigure API keys, tokens, and credentials in your new Supabase project.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`In your new Supabase project, go to `,_jsx(_components.strong,{children:`Edge Functions → Manage Secrets`}),`.`]}),`\n`,_jsx(_components.li,{children:`Add any API keys or external service credentials.`}),`\n`,_jsx(_components.li,{children:`Save changes.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`9-verify-everything-works`,children:`9. Verify everything works`}),`\n`,_jsx(_components.p,{children:`When you are done with all off the steps, your app runs entirely on your Supabase backend. Make sure that everything works, for example:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`App loads without errors`}),`\n`,_jsx(_components.li,{children:`You can create and read database records`}),`\n`,_jsx(_components.li,{children:`Authentication works`}),`\n`,_jsx(_components.li,{children:`Storage uploads/downloads succeed`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`advanced-cli-migration-option`,children:`Advanced: CLI migration option`}),`\n`,_jsx(_components.p,{children:`For developers comfortable with the command line:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`17`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# 1. Install Supabase CLI`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`npm install -g @supabase/cli`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# or`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`brew install supabase/tap/supabase`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# 2. Update config files (.env + supabase/config.toml)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# 3. Link to your new Supabase project`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`supabase login`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`supabase link --project-ref your-new-project-id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# 4. Push all migrations`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`supabase db push`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`# 5. Verify schema`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`supabase db diff`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Self-hosting: Run your Lovable Cloud project anywhere","sidebarTitle":"Self-hosting","description":"Deploy and manage your Lovable Cloud projects on your own infrastructure","icon":"door-open","href":"/tips-tricks/self-hosting","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Key principles","slug":"key-principles","depth":2,"children":[]},{"title":"Migration overview","slug":"migration-overview","depth":2,"children":[]},{"title":"Example: Move your Lovable Cloud project to Supabase","slug":"example-move-your-lovable-cloud-project-to-supabase","depth":2,"children":[{"title":"1. Create a new Supabase project","slug":"1-create-a-new-supabase-project","depth":3,"children":[]},{"title":"2. Update environment variables","slug":"2-update-environment-variables","depth":3,"children":[]},{"title":"3. Update Supabase configuration","slug":"3-update-supabase-configuration","depth":3,"children":[]},{"title":"4. Run database migrations","slug":"4-run-database-migrations","depth":3,"children":[]},{"title":"5. Export and import your data","slug":"5-export-and-import-your-data","depth":3,"children":[]},{"title":"6. Reconfigure authentication","slug":"6-reconfigure-authentication","depth":3,"children":[]},{"title":"7. Migrate storage files","slug":"7-migrate-storage-files","depth":3,"children":[]},{"title":"8. Set up environment variables and secrets","slug":"8-set-up-environment-variables-and-secrets","depth":3,"children":[]},{"title":"9. Verify everything works","slug":"9-verify-everything-works","depth":3,"children":[]},{"title":"Advanced: CLI migration option","slug":"advanced-cli-migration-option","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"generaltranslation-d8a08cd1","siteName":"Lovable Documentation","title":"Self-hosting: Run your Lovable Cloud project anywhere - Lovable Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/tips-tricks/self-hosting","matchLevel":0},"es":{"href":"/es/tips-tricks/self-hosting","matchLevel":1},"ja":{"href":"/ja/tips-tricks/self-hosting","matchLevel":1},"zh":{"href":"/zh/tips-tricks/self-hosting","matchLevel":1},"fr":{"href":"/fr/tips-tricks/self-hosting","matchLevel":1},"de":{"href":"/de/tips-tricks/self-hosting","matchLevel":1},"pt-BR":{"href":"/pt-BR/tips-tricks/self-hosting","matchLevel":1},"it":{"href":"/it/tips-tricks/self-hosting","matchLevel":1}}},"lastModified":"2026-01-25T22:46:33.282Z","originalFileLocation":"tips-tricks/self-hosting.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Deploy and manage your Lovable Cloud projects on your own infrastructure\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lovable Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Self-hosting: Run your Lovable Cloud project anywhere - Lovable Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Deploy and manage your Lovable Cloud projects on your own infrastructure\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lovable Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lovable.dev/tips-tricks/self-hosting\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://generaltranslation-d8a08cd1.mintlify.site/assets/logo/opengraph-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Self-hosting: Run your Lovable Cloud project anywhere - Lovable Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Deploy and manage your Lovable Cloud projects on your own infrastructure\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://generaltranslation-d8a08cd1.mintlify.site/assets/logo/opengraph-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/generaltranslation-d8a08cd1/bjz-1EsDtwXCCrK5/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lovable Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0095FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lovable.dev/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tips-tricks/self-hosting.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.lovable.dev/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.lovable.dev/es/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.lovable.dev/ja/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.lovable.dev/zh/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.lovable.dev/fr/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.lovable.dev/de/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.lovable.dev/pt-BR/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.lovable.dev/it/tips-tricks/self-hosting\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.lovable.dev/tips-tricks/self-hosting\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lovable.dev/#organization\",\"name\":\"Lovable Documentation\",\"url\":\"https://docs.lovable.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/generaltranslation-d8a08cd1/At48MABj-G93zw7Y/assets/logo/logoblack.svg?fit=max\u0026auto=format\u0026n=At48MABj-G93zw7Y\u0026q=85\u0026s=ca1f70ffb8cc99cf980d91ff6495d89f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lovable.dev#website\",\"name\":\"Lovable Documentation\",\"url\":\"https://docs.lovable.dev\",\"publisher\":{\"@id\":\"https://docs.lovable.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lovable.dev/tips-tricks/self-hosting#webpage\",\"url\":\"https://docs.lovable.dev/tips-tricks/self-hosting\",\"name\":\"Self-hosting: Run your Lovable Cloud project anywhere\",\"description\":\"Deploy and manage your Lovable Cloud projects on your own infrastructure\",\"dateModified\":\"2026-01-25T22:46:33.282Z\",\"isPartOf\":{\"@id\":\"https://docs.lovable.dev#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.lovable.dev/tips-tricks/self-hosting#article\",\"headline\":\"Self-hosting: Run your Lovable Cloud project anywhere\",\"name\":\"Self-hosting: Run your Lovable Cloud project anywhere\",\"description\":\"Deploy and manage your Lovable Cloud projects on your own infrastructure\",\"url\":\"https://docs.lovable.dev/tips-tricks/self-hosting\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lovable.dev/tips-tricks/self-hosting#webpage\"},\"image\":\"https://docs.lovable.dev/assets/logo/opengraph-image.png\",\"dateModified\":\"2026-01-25T22:46:33.282Z\",\"publisher\":{\"@id\":\"https://docs.lovable.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lovable.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lovable Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lovable Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tips-tricks/self-hosting.md","siteName":"Lovable Documentation","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/introduction/welcome"}]},{"tab":"Features","pages":[{"title":"Features","href":"/features/modes"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"Tips \u0026 Tricks","pages":[{"title":"Best practices","icon":"dumbbell","href":"/tips-tricks/best-practice"},{"title":"Troubleshooting","icon":"toolbox","href":"/tips-tricks/troubleshooting"},{"title":"Implement SEO and GEO best practices","sidebarTitle":"SEO and GEO best practices","icon":"magnifying-glass","href":"/tips-tricks/seo-geo"},{"title":"Using images in Lovable","icon":"frame","href":"/tips-tricks/using-images"},{"title":"Using videos","icon":"film","href":"/tips-tricks/using-videos"},{"title":"Using custom (Google) fonts","icon":"font","href":"/tips-tricks/custom-fonts"},{"title":"Using npm packages","icon":"box","href":"/tips-tricks/npm-packages"},{"title":"From idea to working app","icon":"screwdriver-wrench","href":"/tips-tricks/from-idea-to-app"},{"title":"Support policy","icon":"life-ring","href":"/tips-tricks/support-policy"},{"title":"Avoiding security pitfalls","description":"When building and publishing with Lovable","icon":"lock","href":"/tips-tricks/avoiding-security-pitfalls"},{"title":"Self-hosting: Run your Lovable Cloud project anywhere","sidebarTitle":"Self-hosting","icon":"door-open","href":"/tips-tricks/self-hosting"}]},{"tab":"Prompt engineering","pages":[{"title":"Prompt engineering","href":"/prompting/prompting-one"}]},{"tab":"Use cases","pages":[{"title":"Use cases","href":"/use-case/video-tutorials"}]},{"tab":"Glossary","pages":[{"title":"Glossary","href":"/glossary"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/tips-tricks/self-hosting"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/tips-tricks/self-hosting"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/tips-tricks/self-hosting"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/tips-tricks/self-hosting"}]},{"language":"de","pages":[{"title":"de","href":"/de/tips-tricks/self-hosting"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/tips-tricks/self-hosting"}]},{"language":"it","pages":[{"title":"it","href":"/it/tips-tricks/self-hosting"}]}]},"basePath":"","title":"Self-hosting: Run your Lovable Cloud project anywhere - Lovable Documentation","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}