# How to host a website you built with Lovable

Export your Lovable project and upload the .zip to PageHub. Every page opens in a visual editor, ready to publish on your own domain with HTTPS. If you want to host a website built with Lovable, export a Lovable site, or put a Lovable site on your own domain, this page covers it.

## The short answer

- Export the project from Lovable through GitHub, as a .zip.
- Upload the .zip to PageHub. You don't build anything first: PageHub runs the project and reads its pages.
- Each page becomes one you can edit visually, and forms save to your account.
- Attach your domain, and SSL is issued automatically. The free plan includes 1 published site on your own domain.

## Why move your site to PageHub

Lovable is a fast way to get something built. PageHub is where a business site lives after that.

- **Anyone can make changes.** Click any text or image and change it. No prompts, no code, and no waiting on whoever built the site.
- **Your content stays in one place.** Team, listings, menus and products live in collections. Change a row and every page showing it updates.
- **The business parts are built in.** Forms, member sign-in and a store come with the site, so there's no backend to set up or look after.
- **It's easy to hand over.** Give a client or teammate the visual editor. They never need to open an AI tool to keep the site current.

## Get your code out of Lovable

Lovable keeps your code in sync with GitHub, on every plan.

1. In your Lovable project, connect GitHub and let it create the repository.
2. Open the repository on GitHub, click Code, then Download ZIP.
3. On a paid Lovable plan you can also download a ZIP from the project's code view.

## Upload it to PageHub

Start at `/start/import/html`.

1. Open the import page and sign in to PageHub (free, no credit card).
2. Drop the .zip. There's no need to unzip it or build anything first.
3. PageHub runs the project and reads every page it can reach. This takes a couple of minutes.
4. Pick the pages you want and click Import. The site opens in the visual editor as a draft.

## What you get

| In your Lovable project | On your PageHub site |
|---|---|
| Pages and the links between them | Pages you can edit by clicking on them |
| Styles, fonts and images | The same look, with images in your media library |
| Contact and sign-up forms | Forms that save every submission to your account |
| Sign-in forms | Member sign-in by email link |
| Database tables in the project's code | Collections you can fill in and show on pages |

Lovable projects usually keep their data in Supabase. Tables defined in the project's SQL migrations become PageHub collections. The rows themselves stay in Supabase, so add them to a collection and show it on the page.

## Put it on your domain with HTTPS

1. Open the Domains page for your site and enter your domain.
2. Add the DNS records PageHub shows you where you bought the domain.
3. SSL is issued automatically, usually within a few minutes of DNS being in place.
4. Publish. Connecting a domain doesn't publish the site by itself.

## FAQ

### Can Lovable host my site on my own domain?
Yes, Lovable can publish your project, and that keeps it inside Lovable. Move it to PageHub when you want to change text and images in a visual editor without spending prompts, and collect form submissions in one place.

### What happens to my Supabase data?
Tables in the project's SQL migrations become PageHub collections, without their rows. A page that loads its content from Supabase comes across as it looks without that data, so it may show an empty list or a loading message. Add the rows to a collection and show it on that page.

### Should I move my app to PageHub?
Move it if it's a website: pages people read, forms, members, a catalog. Keep it in Lovable or on a host that runs server code if it's an app with its own logic, such as a dashboard, a calculator or a tool people log in to use. That logic doesn't come across.

### Do I have to build the project first?
No. Upload the Lovable code as it is. PageHub installs and runs the project, reads what each page shows, and turns that into an editable site.

### Will buttons and app features still work?
Links, forms and member sign-in come across. Buttons run by the project's own scripts and its server logic don't, so a calculator, quiz or dashboard arrives as a static page. You can add your own JavaScript to a PageHub site for those, or keep the app on a host that runs server code.

### Can I keep editing in Lovable after I import?
The two aren't linked. After the import, you edit in PageHub's visual editor or with an AI assistant connected to PageHub. Importing again makes a new site rather than updating this one.

### Does PageHub keep all my pages?
Yes, up to your plan's limit per import: 5 pages on Free, 50 on Pro, 200 on Business and 1,000 on Agency.

### Is it free?
Importing works on every plan. The free plan includes 1 published site on a domain you own, with SSL and no credit card. You buy the domain from a registrar. Pro is $7 a month per site and adds member sign-in.

### Does the import use AI on my code?
No. The import is a fixed conversion with no AI, so it uses no credits.

Lovable is a trademark of its owner. PageHub isn't affiliated with or endorsed by Lovable.
