Menu

Deploy a Lovable app to your own server (Vite or TanStack Start)
📰

Deploy a Lovable app to your own server (Vite or TanStack Start)

DEV Community: docker·Mihailo Popović·3 days ago
#uQgOWA0H
#devtodocker#devto#dev#lovable#server
Reading 0:00
15s threshold

Originally published on the OpsCrew blog .

TL;DR

Lovable projects created on or after 13 May 2026 are TanStack Start apps that need a running Node.js server. Older ones are React and Vite apps that build to static files.

Check package.json. If it lists @tanstack/react-start , you have the server version.

Connect GitHub in Lovable's Git settings, on any plan. Lovable creates a private repository and keeps it in sync both ways.

Build a Vite app into dist/ and serve it with an index.html fallback. Build a TanStack Start app with NITRO_PRESET=node-server and run node .output/server/index.mjs.

Set VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY before the build, because they are compiled into the JavaScript. A TanStack Start app's server also reads SUPABASE_URL and SUPABASE_PUBLISHABLE_KEY where it runs.

The backend can stay on Lovable Cloud.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.