Push your Lovable code to GitHub, import the repo on Hostinger, build with npm run build, add your
environment variables before the first build, add the public_html/.htaccess refresh fallback, allow the new
URL in your auth provider, then connect your domain. Hostinger: No free tier — prepaid plans with a 30-day money-back guarantee; paid from $2.99/mo
(checked 17 Oct 2026).
- Older React + Vite project: run npm run build locally, upload the contents of dist/ to public_html, and add the .htaccess rewrite so refreshes don't 404.
- TanStack Start project: needs Node.js hosting (Business or Cloud plans). Build with NITRO_PRESET=node-server and start with node .output/server/index.mjs.
- Vite bakes VITE_ variables in at build time — build with your real values before uploading.
Step by step
-
Check your project type
- TanStack Start (new projects): package.json lists @tanstack/react-start or @lovable.dev/vite-tanstack-config; there are files under src/routes/.
- React + Vite (older projects): vite.config.ts and index.html at the repo root, no src/routes/ folder, build output is dist/.
-
Get the code onto GitHub
- Connect GitHub (available on all plans): Project → Settings/Connectors → GitHub → Connect project. Lovable creates a repo and keeps it in two-way sync.
- Downloading the codebase as a file and editing code in Lovable require a paid plan.
-
Create the project on Hostinger
hPanel → Websites → Create/Add website → Web App (Node.js) → Import Git repository, authorise GitHub and select the repo. Or upload a .zip of the project source.
-
Check the build settings
Hostinger auto-detects the framework. For Vite: build
npm run build, outputdist.For Lovable: build command
npm run build, output dist (Netlify / Cloudflare / static). On Vercel leave Output Directory empty for TanStack projects. -
Add environment variables before the first build
In Hostinger: Review build settings screen → Environment variables (you can Import .env). Copy these from Lovable:
-
VITE_SUPABASE_URL -
VITE_SUPABASE_PUBLISHABLE_KEY -
VITE_SUPABASE_PROJECT_ID -
SUPABASE_URL and SUPABASE_PUBLISHABLE_KEY (server-side, TanStack Start projects)
Changed a value later? Rebuild. Vite bakes variables in at build time. Troubleshoot missing env vars
-
-
Make page refreshes work (Vite / React Router single-page apps)
public_html/.htaccess (Node.js web app deploys generate this automatically) RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L]Server-rendered projects (TanStack Start, Next.js) don't need this. Hostinger docs (opens in a new tab)
-
Update login redirect URLs
Add your new Hostinger URL (and later your custom domain) to your auth provider's allowed URLs. In Supabase: Authentication → URL Configuration. Redirect troubleshooting · Check RLS before going live
-
Add your domain
Domains bought at Hostinger connect from hPanel; external domains are pointed via nameservers or DNS records shown in hPanel.
How much does Hostinger cost for a Lovable app?
No free tier No free tier — prepaid plans with a 30-day money-back guarantee. Paid from $2.99/mo: Promotional rate on a 48-month prepay; renewal $10.99/month. Business plan price: unverified (not clearly labelled on the page we checked). Checked 17 Oct 2026 on Hostinger's pricing page (opens in a new tab).
- Headline prices require long prepaid terms and renew higher. Prices may vary by country and currency.
- Static uploads work on Premium; Git-based Node.js app deploys need Business or Cloud.
Other options for Lovable
Related guides
- Custom domain on Lovable, Bolt, Replit and v0: what it costs and how to set it up
- Supabase vs Neon vs Firebase vs Turso: which database for an AI-built app?
- Supabase “permission denied for table” (42501) on a new table: the October 30 grants change, explained and fixed
- Netlify Server (Early Access, November 2026): run an Express, Hono or Fastify backend and WebSockets on Netlify
- Supabase CLI v3 (November 2026): why db push no longer reaches your project, and how to fix HostedMutationConsentRequiredError
- Cloudflare spending limits (November 2026): how to put a hard cap on your Workers bill, and what stops when you hit it
- vercel.toml on Vercel (November 2026): how to convert vercel.json, with SPA rewrites, branches and the one-file rule
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE: the 4.5 MB request body limit, the new 20 MiB opt-in (Nov 2026), and when to upload straight to storage
- Lovable managed Google Maps now costs credits: what changes on 15 December 2026, what it costs, and when to switch to your own API key
- Cloudflare Email Sending on the Workers Free plan (November 2026): what you can send for free, what needs the $5 plan, and how to set it up
- Cloudflare Search for Agents (November 2026): what the toggle does, what it costs from 1 December, and how to set it up safely
- Claude Sonnet 4.5 retires on 30 November 2026: find the calls in your vibe-coded app and switch without new 400 errors