Modelence takes a Lovable app to production hosting on AWS, in the region you choose. Supabase stays as it is: the database, sign-in, storage and edge functions keep running on Lovable's built-in backend or the Supabase project you connected, and only the app's hosting moves. When the app grows, you can add a backend service or a managed MongoDB, PostgreSQL or Redis database on Modelence next to it.
The move starts from the code Lovable exports to GitHub. Your coding agent describes the app in one config file and deploys it, while you sign in, paste in the Supabase values and switch the domain.
Paste this into your coding agent to start
Where each part of your Lovable app goes
The app’s hosting moves to Modelence, and everything it uses in Supabase stays where it is.
| On Lovable | On Modelence |
|---|---|
| Lovable hosting | The app runs on AWS in the region you choose, built from modelence.config.json in your repository. Your coding agent writes the file and runs the deploy. |
| React and Vite app | The platform serves the built dist directory. Paths that match no file get index.html, so client-side routes keep working when someone refreshes the page. |
| TanStack Start app | It builds with Nitro’s Node.js server preset and runs as a service, so server rendering, server functions and API routes run on Modelence with the rest of the app. |
| Supabase | The database, sign-in, storage and edge functions stay in Supabase, and the app connects to the same project with the same URL and publishable key. |
| .env file | VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY are declared in the config file and reach the build, since Vite puts them into the frontend bundle. The deploy asks you for their values. |
| Server secrets | Keys that TanStack Start server functions read are declared as secrets, stored encrypted and set per environment. You can view one in the dashboard, and every view is logged. |
| Git sync | Lovable keeps editing the app and pushing to GitHub, and you deploy from the same repository. |
| Sign-in redirect URLs | Add the app’s Modelence address and your domain to the allowed redirect URLs, in Lovable’s auth settings or in your Supabase project. |
| Custom domain | Add your domain to the app and update the DNS record. Domains are unlimited on paid plans, with TLS certificates issued for you. |
| Backend and databases | When the app needs its own API or a worker, add it as another service in the same config file. Managed MongoDB, PostgreSQL and Redis run in the same AWS region as the app. |
The config file for a Lovable app
Your coding agent writes modelence.config.json at the root of the repository. It looks like one of these, depending on the stack.
React and Vite
The build runs once per deploy, and the platform serves dist with a fallback to index.html for client-side routes.
{
"$schema": "https://cloud.modelence.com/schema/modelence.config.json?version=1",
"resources": {
"web": {
"type": "service",
"image": "node-22-slim",
"build": { "commands": ["npm ci", "npm run build"] },
"static": [{ "path": "/", "dir": "dist" }]
}
},
"env": {
"VITE_SUPABASE_URL": { "scopes": ["build", "runtime"] },
"VITE_SUPABASE_PUBLISHABLE_KEY": { "scopes": ["build", "runtime"] }
}
}TanStack Start
The build uses Nitro's Node.js server preset, and the server it writes to .output handles routing and server functions.
{
"$schema": "https://cloud.modelence.com/schema/modelence.config.json?version=1",
"resources": {
"web": {
"type": "service",
"image": "node-22-slim",
"build": { "commands": ["npm ci", "NITRO_PRESET=node-server npm run build"] },
"start": { "commands": ["node .output/server/index.mjs"] }
}
},
"env": {
"VITE_SUPABASE_URL": { "scopes": ["build", "runtime"] },
"VITE_SUPABASE_PUBLISHABLE_KEY": { "scopes": ["build", "runtime"] },
"SUPABASE_URL": {},
"SUPABASE_PUBLISHABLE_KEY": {}
}
}Deploying your Lovable app
Your coding agent does most of the setup, and you step in to sign in, add values and switch the domain.
- 1
Export the code to GitHub
In Lovable, connect the project to GitHub with Git sync. Lovable creates a repository and keeps it in sync both ways, so you can keep building in Lovable after the move. Clone the repository to your computer.
Projects created from May 13, 2026 use TanStack Start and list
@tanstack/react-startin package.json. Older projects are React and Vite apps. If the repository has onlybun.lock, runnpm installand commit thepackage-lock.jsonit creates. - 2
Give your coding agent the deploy prompt
Open the project in your coding agent and paste the prompt below. The agent reads the Modelence deploy guide, works out which stack the project uses and how it builds, and goes through the next steps with you.
Paste this into your coding agent
- 3
The agent writes the config file and deploys
It writes modelence.config.json like the ones above, checks that the build works locally and runs the deploy. Your browser opens so you can sign in, pick the app and environment, and paste in the values the deploy asks for.
Copy
VITE_SUPABASE_URLandVITE_SUPABASE_PUBLISHABLE_KEYfrom the project's .env file. A TanStack Start app also takesSUPABASE_URLandSUPABASE_PUBLISHABLE_KEYwith the same values, plus any secrets its server functions read, which aren't in the repository. - 4
Let the new address sign people in
The app now answers at an address like
your-app-production.cloud.modelence.app. Add it to the allowed redirect URLs with/**at the end, so that every path on it matches:https://your-app-production.cloud.modelence.app/**On Lovable's built-in backend, the list is under More → Users → Settings → Advanced → Redirect URLs, and managed Google, Apple and Microsoft sign-in work on the new address once it is there. For a Supabase project you connected yourself, it is under Authentication → URL Configuration in the Supabase dashboard. If Google sign-in uses your own OAuth client, add the address in Google Cloud Console too.
- 5
Check the app on its Modelence address
Open a nested route directly and refresh it, sign in and out, and run the reads, writes and uploads the app depends on. For a TanStack Start app, also open a server-rendered page and trigger a server function.
- 6
Move your domain
Add your domain to the Modelence app and update the DNS record, then add the domain to the redirect URLs the same way. For a Supabase project you connected yourself, also set the Site URL to your domain, since Supabase uses it in confirmation and password reset emails.
Your
lovable.appaddress stays with Lovable and keeps serving the version you last published there. Later changes you make in Lovable sync to GitHub, and the next deploy puts them live on your domain.
On AWS, in the region you choose
Your app runs in the AWS region you pick, with failover and encryption set up from the first deploy, and any databases you add run in the same region.
Americas
- Oregonus-west-2
- N. Californiaus-west-1
- Ohious-east-2
- N. Virginiaus-east-1
- Montrealca-central-1
- São Paulosa-east-1
Europe
- Irelandeu-west-1
- Londoneu-west-2
- Pariseu-west-3
- Frankfurteu-central-1
- Stockholmeu-north-1
Asia Pacific
- Mumbaiap-south-1
- Singaporeap-southeast-1
- Seoulap-northeast-2
- Osakaap-northeast-3
- Tokyoap-northeast-1
- Sydneyap-southeast-2
Frequently asked questions
Do I have to move my database off Supabase?
No. Only the hosting moves. The database, sign-in, storage and edge functions keep running in Supabase, and the app talks to them with the same URL and publishable key it uses on Lovable.
Does this work for apps on Lovable Cloud?
Yes. Lovable Cloud is Lovable’s built-in backend, and an app on it keeps using it when it is hosted on Modelence. Add the new address and your domain under Redirect URLs in the auth settings, and managed Google, Apple and Microsoft sign-in work there too.
Can I keep building the app in Lovable?
Yes. Keep Git sync connected, and every change Lovable makes lands in the GitHub repository you deploy from. The Publish button in Lovable still publishes to your lovable.app address, while your domain serves the version you deploy to Modelence.
Which Lovable projects can I host on Modelence?
Both kinds. Older React and Vite projects build to static files that the platform serves with a fallback to index.html, and TanStack Start projects run as a Node.js service with server rendering and server functions.
Can I add a backend or a database later?
Yes. Add an API or a worker as another service in the same config file, and add a managed MongoDB, PostgreSQL or Redis database when the app needs one. They run in the same AWS region as the app, and the next deploy creates them.
Does Modelence run on AWS?
Yes. Every app runs on AWS Fargate across two availability zones, in the region you pick on the first deploy. You can choose from 17 AWS regions across the Americas, Europe and Asia Pacific.
Can Claude Code or Cursor do the setup for me?
Yes. Open the repository in Claude Code, Cursor, Codex or another coding agent and paste the prompt from the second step. The agent writes the config file, checks the build and runs the deploy, and you paste in the Supabase values and secrets it asks for.
How much does hosting a Lovable app on Modelence cost?
You can start on the Free plan with a Modelence subdomain. Starter is $20 a month with $20 of usage included and unlimited custom domains, and you pay for usage above that.
Host your Lovable app on Modelence
Start on the Free plan and keep your lovable.app address running until you switch the domain.
Or paste this into your coding agent