How to host a Lovable, Bolt or Codex website (no build)
Built a site with Lovable, Bolt or Codex and can't get it online? What to upload when a host asks for build commands, DNS and SSL, and how to get a link.
The Liite team9 min de leitura
Short answer
If your tool gave you one self-contained index.html, or you can export a folder of finished files with index.html at the top, upload that to a static host and you are done. No build command, environment variable, DNS or SSL setup is needed for a free address. If all you have is a source project, you first need its built output, or you need a host that builds for you.
You made a site with Lovable, Bolt, Codex, Claude or ChatGPT in about 20 minutes, and now you've lost days to build commands, environment variables, DNS and SSL. Searches like "how to host lovable / bolt / codex website" usually end in "just use Vercel", which assumes you know what a build step is.
Why it happens
The generator and the host expect different things. Here are the causes, most common first.
- You have source code, not a finished site. Many AI builders produce a project: a
srcfolder, apackage.json, and a build step that turns it into plain files. Hosts built for that workflow ask for a Git repository, a build command and an output folder. Netlify's Vite guide, for example, suggestsnpm run buildas the command anddistas the folder to publish. Netlify suggests a build command and publish directory: npm run build or yarn build and dist. - The project may need a server-side runtime. Vercel's guide says Lovable projects use TanStack Start as their underlying framework, and its recommended route is syncing the Lovable project to GitHub and importing the repository. That is a framework deploy, not a drag-and-drop of plain files. Whether a given Lovable export can be served as plain static files depends on how the project was set up, and we can't tell you that for your project.
- Chat tools often give a different kind of output. ChatGPT and Claude commonly return a single HTML file with its CSS and JavaScript inside. People who deal with AI-generated sites report this pattern often. That file is already a finished site.
- DNS and SSL only matter for your own domain. A free address on the host's domain needs neither. Most of the "days stuck" is people tackling the domain first.
- Hosting inside the builder is easy but ties you down. Your address and plan live with that tool. Having your own copy of the files lets you move.
Step-by-step fixes
Fix 1: work out what you have
- Open the folder or download from your tool.
- If it's one
.htmlfile, it's finished. Go to Fix 2. - If you see
package.json,srcand maybevite.config, it's source. Go to Fix 3. - If you see
index.htmlplus anassetsfolder and nopackage.json, it's built output. Zip it and go to Fix 2.
Fix 2: upload finished files to a static host
- Put
index.htmlat the top level of the folder, or inside a single wrapper folder. - Zip the folder, or keep the single file.
- Upload it to a host that serves plain files. The Liite steps are in the last section.
- Open the address you get and click through every page.
- To change something, upload again to the same site.
Fix 3: get the built output from a source project
- Ask the tool for a single file. In the builder's chat, ask for the whole site as one self-contained
index.html, with CSS and JavaScript inline and no build step or imports from local files. Tools differ in how well they do this, so check that it opens by double-clicking it on your computer. - Or build it once yourself. On a computer with Node.js installed, run these in the project folder:
npm install
npm run buildThe result is usually a folder named dist or build. Namecheap's guide to deploying Vite apps also says to run commands like npm run build on your local machine rather than on a different system. Upload the contents of that folder.
- Check the output is plain files. If
distcontains server code or aclientsubfolder next to a server folder, the project targets a server runtime. A plain static host can't run that part. Netlify's framework overview listsdist/clientas the publish directory for TanStack Start, which suggests the browser files sit in a subfolder; try uploading that folder only if the app is client-rendered. - If it still fails, either use a host that builds from a Git repository (Vercel's Lovable guide covers that route), or ask the builder to regenerate the project as a plain HTML, CSS and JS site.
Fix 4: fix a blank or broken page after upload
- Open the browser developer console (F12) and look for red, failed requests.
- A 404 on
/assets/...usually means the zip lacks theassetsfolder, orindex.htmlis nested too deep. - If the page works on
/but a link like/aboutfails, the site is a single-page app. Turn on the host's single-page-app (SPA) or fallback-to-index.htmlsetting. - If the page loads but data is missing, the code probably calls a service with a key or an address that only existed inside the builder.
Secret keys
Anything in a static site, including an API key typed into the code, can be read by every visitor. Don't publish a file that contains a paid key. Keys belong on a server, which a static host doesn't have.
Which cause matches your symptom
| What you see | Likely cause | Fix |
|---|---|---|
| Host asks for build command and output folder | You're uploading source | Fix 3 |
Blank page, red errors for /assets/... | Missing folder or wrong nesting | Fix 4, step 2 |
Home works, /about is 404 | Single-page app routing | Fix 4, step 3 |
| Upload refused | File type not allowed, such as .php | Remove server code |
| Works in the builder, not elsewhere | Keys, databases or backend in the builder | Needs a server host |
| Custom domain shows an error | DNS records not added yet | Records shown by the host |
What won't help
- Uploading the source project to a file-only host. It can't run
npm run buildfor you. - Server code. PHP, Node servers and databases need a different kind of host.
- Starting with DNS. Get a working link first, then decide on a domain.
- Environment variables on a static host. A purely static site has nowhere to keep them secret. Build-time variables get baked into the files.
Checklist before you try again
index.htmlis at the top of the upload or inside one wrapper folder.- The page opens correctly from your own computer first.
- Every file it references (
assets, images, fonts) is in the upload. - No secret keys appear in the files.
- The upload is under your host's size limit.
- You chose the SPA setting if the site has its own routing.
Putting it on Liite
Liite's uploaded sites are built for this case. You can upload a single .html file, a .zip or a folder, and you get a <slug>.liite.site address. A zip needs index.html at the top level or inside one wrapper folder, and a single wrapper folder is stripped automatically, so my-site/index.html works. Files like .DS_Store are dropped, and a zip can hold up to 1,000 files. Each site is its own origin, so root-relative paths such as /style.css work. If your site handles its own routing, switch on the optional SPA setting to send unknown paths to index.html.
You can also paste HTML from AI tools such as Claude, ChatGPT, v0, Lovable, Bolt or Cursor, and it becomes an uploaded site. To update, upload again: the address stays the same and old versions are kept for rollback. There is a code editor in the browser on every plan. On Pro and up you can use AI edit on uploaded files, with a diff preview, paid with credits or your own key.
What Liite doesn't do: it runs no server code (PHP, Node, databases), has no build pipeline or Git deploys, and refuses types such as .php. So it fits a single file or built output, not a project that needs a build.
| Free | Pro | |
|---|---|---|
| Upload size per site | 3 MB | 25 MB |
| Offline after last publish | 7 days | Never expires |
| Search indexing | Never indexed | Indexable after first 24 hours |
| Custom domain | No | Yes, one per site |
| Card on file to publish | Yes | n/a, paid plan |
Prices as of November 2026: Pro is $8 a month. A Free uploaded site needs a card on file, and starting the 14-day Pro trial counts. The card isn't charged unless you buy a plan. Sign up, then follow put an HTML file, a zip or a PDF online or the uploaded sites docs.
Your own domain later
A custom domain is a Pro feature. You enter the apex or www name, add the DNS records Liite shows, and the HTTPS certificate is set up automatically. The records are in custom domains.
If nothing works
Contact the builder's support (Lovable, Bolt or your Codex provider) if the export or download doesn't give you files, and the host's support if an upload is refused. Include the exact error text, the time, what is in the top level of your folder, the output of npm run build if you ran it, and a screenshot of the browser console.
Hi, I built a site with [tool name] and I'm trying to host it as static files.
My upload contains: [index.html only / dist folder / zip with N files].
What I see: [blank page / 404 on /assets/... / upload refused with "exact message"].
Time of the attempt: [date, time, time zone].
Console errors: [paste the red lines].
Already tried: unzipped and re-zipped, checked that index.html is at the top level.
Can you tell me whether this project can be served as plain static files, and if not, what export I should use?Common questions
Do I need a build command to host a Lovable or Bolt site?
Only if you have a source project. A single HTML file or a built dist folder needs none. Git-based hosts ask for a build command because they build the project for you.
Can I move a site out of Lovable or Bolt later?
Often, yes. Hostinger's guide notes that not all vibe coding tools allow you to directly export website files, but connecting to GitHub is a common way to get the code out. Check your tool's own help for its export route, since menus change.
Do I need my own domain to share the site?
No. A host's own address, like <slug>.liite.site, works straight away. Add a domain only when you want one.
Why is my Free uploaded site not showing in Google?
Free uploaded sites on Liite are always noindex. Paid sites are noindex only for the first 24 hours after the first publish.