OxyPages

How To Put A Lovable Export Online

How To Put A Lovable Export Online

A Lovable export is a project folder, not one file. Here is which part of it to upload, when you have to build it first, and how to keep the form working.

The OxyPages Team · · 9 min read

You pressed Download, unzipped what arrived, and now you're looking at a folder.

Not a file. A folder, with an index.html in it, something called src or assets, a package.json, and twenty things you've never opened.

Every guide you've read says "upload your HTML file". There isn't one HTML file. There is a whole project, and the thing that actually trips people up with a Lovable export is working out which part of that project is the website.

One folder in there is the site. The rest is the recipe for making it. Upload the recipe and you get a blank white page. Upload the right folder and it works, usually inside a minute.

There's a second question too, and since May 2026 it matters more: whether your project turns into plain files at all, or needs a server behind it. Check that first, because it decides where the site is allowed to live.

TL;DR: A Lovable export is a project folder, not a page. If it has a src folder and a package.json, run npm run build once and upload the dist folder that command writes, not the folder you downloaded. Check the stack first: older React and Vite projects build to static files that any static host serves, while projects created from 13 May 2026 run on TanStack Start, which renders pages on a server and needs a host that runs server code. The contact form won't survive the move either, so replace it with a plain HTML form that posts to a form service.

Why A Lovable Export Is A Folder, Not One File

Because what you downloaded is source code for a web app, and a web app has to be assembled before a browser can read it.

That assembly is the build. It bundles your components into a couple of files, hashes the filenames so nobody gets served a stale copy, and writes the result into a new folder. That folder is the website. Everything beside it is scaffolding.

Which one you're holding is a five-second check, and the table below is the whole answer:

What you see in the folderWhat it isDoes it get uploaded
index.html with your own words in itA finished pageYes
index.html of about ten lines, pointing into srcThe shell the build fills inNo, build first
src/Your components, before assemblyNo
package.json, vite.config.ts, tsconfig.jsonInstructions for the buildNo
public/Files copied straight throughTheir contents end up in the output
dist/ (appears after you build)The actual websiteYes, the whole folder
node_modules/Downloaded libraries, often 90% of the sizeNever

Two rows say yes, and one only exists after a build.

None of this is a Lovable quirk. Bolt, v0 and anything on a modern JavaScript framework hand you the same shape: the four shapes an AI builder can hand you.

Does Your Project Build To Static Files At All?

Only if it was built on the older stack, and that's a date check rather than a judgement call.

Lovable switched its default on 13 May 2026. Projects from before then are React and Vite, which draw pages in the browser. Projects after it are TanStack Start, which renders each page into finished HTML on the server.

Lovable's own notes put the consequence plainly: older React and Vite apps build to static files, so any static host serves them, while TanStack Start apps run server code, so the host has to run one. Lovable's guidance on deploying and hosting outside Lovable

Two quick ways to tell which you have:

  • Look for @tanstack/react-start in the package.json dependencies. If it's there, you've got the server-rendered stack.
  • Look in the editor for an option to upgrade the project to TanStack Start. If it's still being offered, you're on React and Vite.

Now the honest part. On TanStack Start, a plain static host can't serve what the build produces, and that includes OxyPages. We hand files to browsers and we don't run server code, so no plan makes it work. Keep publishing from Lovable, or move to something that runs a server: Cloudflare Workers, Vercel, Netlify, Render, Railway and Fly.io all do, and the first three take a Lovable repository with little ceremony.

On React and Vite, carry on.

How Do You Get The Folder Online?

How Do You Get The Folder Online? - OxyPages

Seven steps. Two and six are where it's won or lost.

  1. Get the code out. Paid plans have a "Download codebase" button at the bottom of the code editor's file panel, or under Project settings then Git. The free plan has no zip button, so connect the project to GitHub and download the repository from there.
  2. Build it. Open a terminal in the folder, run npm install, then npm run build. Node 22 is what Lovable recommends, and a mismatched version is the usual reason a build that works for somebody else fails for you.
  3. Find the output. It's called dist. The index.html inside should show your own text, plus links to files in an assets folder with long hashed names.
  4. Check the asset paths. Vite writes them with a leading slash, which is right at the root of a domain and broken in a subfolder. The base option in the Vite config is the switch. the Vite base option, which controls how asset paths are written
  5. Set the build-time variables before you build. Anything starting VITE_ is baked in at build time, not read while the site runs. Miss one and the site looks perfect and silently fails to reach whatever it was meant to talk to.
  6. Upload the whole dist folder as one piece. Not the index.html on its own. That page asks for files inside assets, and without them you get unstyled text on white.
  7. Open the live address on your phone, on mobile data. Your laptop has everything cached and will lie to you.

One note on size. A signed-in publish takes a zip of up to 100 MB and a built landing page is usually under 2 MB. The anonymous drop with no account is capped at 3 MB and 10 files, and a build clears ten files on its own, so make the account for this.

And if your project has several pages but the build wrote only one index.html, the pages are drawn by JavaScript and a deep link will 404 when somebody refreshes: why a built app 404s on refresh and which hosts rewrite around it.

The Coffee Roastery That Just Needed Enquiries To Arrive

Two people roasting coffee in a unit on an industrial estate, selling wholesale to cafes. This one is assembled from the exports that have landed on me, because the same part breaks every time. They built a landing page in Lovable: a hero, a grid of four coffees with tasting notes, and a contact form for enquiries. An afternoon's work.

They exported it. The build produced 31 files totalling 1.9 MB: a front page, a stylesheet, two JavaScript bundles and the product photographs.

Then the real constraint showed up. The form.

In the preview it worked, because Lovable had wired the submit button to its own backend. In the exported folder, that handler calls an address which exists nowhere else. The form looked normal, took a visitor's details, and threw them away.

They didn't want to stand up a backend for one form. Nobody does.

So the form stopped being JavaScript and went back to being a form. Delete the handler and write plain HTML. A static host can't receive a submission by itself, so the form's action points at a form service, which stores each entry and emails it on. With Formspree, for example, the address looks like this:

<form action="https://formspree.io/f/your-form-id" method="POST">
  <input name="company" required>
  <input name="email" type="email" required>
  <textarea name="message"></textarea>
  <button type="submit">Send enquiry</button>
</form>

Three details catch people out here. Every input, select and textarea needs a name or that answer isn't captured. Switch on the service's spam protection from day one, because bots find a public form within days. And test from the published address, not a preview, so you know the real page delivers.

Enquiries now land in the form service's dashboard, and an email goes to the inbox they read. No server of their own, just one small free account.

Web3Forms and Basin work the same way, and so does Netlify Forms if the site lives on Netlify. Pick the one whose free tier covers how many enquiries you expect in a month.

What Does Not Come Along With The Folder

What Does Not Come Along With The Folder - OxyPages

Four things, and they explain almost every "but it worked in the preview".

The backend. Accounts, a database or saved orders live in a Lovable Cloud or Supabase project. Your zip has the code that talks to it, not the thing itself, so it stays put when the site moves.

The secrets. Anything the old setup read at runtime has to be set again by hand.

Server rendering and deep link routing. Both covered above, and the first has no workaround.

Here's the line I'd want someone to tell me. If your project needs logins, a database queried while a visitor waits, or a payment taken on your side, then a Lovable project with Cloud behind it needs a host that runs code, and that is not us. Render and Railway exist for that. A split works too: marketing pages static, the application somewhere that runs code.

For a landing page with a form on it, which is what most of these are, static is faster and costs close to nothing. The same upload routine for a single page is the short version of the job.

What To Do Next

Five moves, in order, and the first takes ten seconds.

  1. Search package.json for @tanstack/react-start. Found it? You need a host that runs a server.
  2. Open index.html. Your own words in there, and it's finished. Ten lines of scaffolding pointing into src, and you build it first.
  3. Run npm install and npm run build, then check dist/index.html for your text.
  4. Decide where every form's submissions go before you publish.
  5. Upload the whole dist folder, then open it on your phone.

At step five, drop the whole dist folder in and get a live link. The hashed names inside assets arrive untouched, which is all a built page asks of a host. A free subdomain with HTTPS covers the first week, on one personal, non-commercial site with 25 MB of storage and 5,000 page views a month.

The thing worth taking away: the folder you downloaded is almost never the website. Find the folder that is, and hosting stops being interesting.

FAQ

Can I Upload A Lovable Export Without Running A Build?

Only if somebody has already built it for you. A downloaded project is source code, and uploading it gives you a blank page because the browser was handed a recipe instead of a meal. If you cannot run npm run build yourself, ask anyone with Node installed to run it once and send back the dist folder.

Do I Need A GitHub Account To Get My Code Out Of Lovable?

Not on a paid plan, where "Download codebase" gives you a zip from the code editor's file panel or Project settings then Git. On the free plan that button isn't available, so GitHub is the route, and Lovable creates a new repository when you connect rather than pushing into one you already have.

Why Did My Contact Form Stop Working After I Moved The Site?

Because it was posting to Lovable's backend, and that address exists nowhere else. The page is fine; the submit button is calling into thin air. Rewrite it as plain HTML, point it at a form service, then send yourself a test submission from the published address before telling anyone the site is live.

Is My Site Still Connected To Lovable After I Host It Somewhere Else?

The files are not. Once a Lovable export is built and uploaded, those files are ordinary web files on your host and nothing phones home. Two things can still be connected: a database or auth service the code talks to, and the project itself, which carries on existing so you can change it and export again. Editing there won't update the live site, so a change means building and uploading over the top.

Try It Now

Still Here? Drop It In.

The whole pitch fits in one sentence: your HTML, on a link, in seconds.

Drag and drop your HTML files, a folder, a ZIP, your app's build folder, a PDF, an image or an MP3

or ·

No account needed. Your unclaimed website stays live for 30 minutes on a free subdomain. Claim it to your account to keep it permanently.

  • No Account Needed
  • Free SSL
  • 30-Minute Unclaimed Link, Claim To Keep It