pagehaus

Guides

Host a site from Lovable or Bolt anywhere

Lovable and Bolt write your site as a React project (usually with Vite). That's source code: a src folder and a package.json, not the website itself. One command turns it into plain files that any host can serve. Here's how, and what to check before you move.

1. Get the code

Unzip it into a folder on your computer.

2. Build it into a website

  1. Install Node.js (the LTS version) if you don't have it.
  2. Open a terminal in the project folder (the one with package.json) and run:
    npm install
    npm run build
  3. A new folder appears, usually dist (sometimes build). Its contents are your website: an index.html and an assets folder.

If npm run build stops with an error, paste it into Lovable, Bolt or any AI assistant and ask for the fix. Check package.json if your project names the build script differently.

3. Put it online

  1. Create a free Pagehaus site, with an address like https://yoursite.pagehaus.site/.
  2. Upload what's inside dist, not the dist folder itself: drag the files onto the site's Files tab, or zip them and drop the .zip.
  3. Or, from the terminal, with the free pagehaus tool:
    pagehaus deploy dist --site yoursite

Run the build and upload again whenever you change the site.

4. Check these before you switch

Or skip the build

If your site is a few pages of text and pictures, it doesn't need React at all. Ask the AI for "a plain HTML version of this site, one file per page, with no build step", and upload those files as they are. They're easier to change, and every page is found in search.

Something broken once it's online? See why an AI-made website works on your computer but not online.

Your own domain

On a Personal or Pro plan, connect your domain under the Domains tab; HTTPS is set up for you. See custom domains.