Hosting guide

How to export a Bolt project and host it yourself

Bolt publishes to its own hosting by default, and its docs say your code can also go out through a zip or GitHub. This guide gets the project out, works out what kind of project it is, and puts it on VeloxaHost hosting with your domain and HTTPS.

By VeloxaHost · Updated · 4 min read

Step 1: Get the project out of Bolt

  1. Step 1: Download it as a zip

    Bolt's docs: open the project, click the project title at the top left, then Export, then Download. Unzip it.

  2. Step 2: Or connect GitHub

    Click the GitHub icon at the top right of the project and follow the prompts (Bolt asks for an individual GitHub account). Bolt commits your changes and checks GitHub every 30 seconds for changes made outside Bolt. The repository starts private, on a main branch.

  3. Step 3: Run it locally once

    Bolt's docs suggest npm install && npm run dev in the project folder. If it runs on your machine, you know what you are moving.

Step 2: Work out what you are hosting

Bolt's docs say it builds JavaScript web projects: front-end code in any browser framework, and Node.js for a backend. They do not name one default stack, so read package.json.

  • Front end only (a build script, no server started by start): run npm run build and host the folder it writes, often dist/, as a Static site.
  • A Node.js server (start launches a server): host it as a Node.js site.
  • Uses Bolt Cloud's database, sign-in, storage or server functions: see the last section before you move anything.

Step 3a: A front end, as a static site

  1. Step 1: Build it

    Run npm install and npm run build. Set any build-time variables the code reads first.

  2. Step 2: Put the output in a public repository

    VeloxaHost's Git deploy clones a public https repository and stores no credentials, and Bolt's repository starts private. Push the build output to a separate public repository; it is exactly what every visitor downloads anyway.

  3. Step 3: Create the site and deploy

    In the console: Websites, Add Website, your domain, Static as the hosting type. Then on the site's page, Deploy from Git with the repository URL and branch, and Deploy Now. Unknown paths fall back to index.html, so client-side routes work.

Step 3b: A Node.js server, as a Node.js site

  1. Step 1: Make it listen on port 3000

    A VeloxaHost Node.js site runs your app on Node 22 from /opt/app and forwards your domain to the port in PORT, which is 3000. Check that the server listens on process.env.PORT.

  2. Step 2: Make the build part of starting

    Deploys run npm ci (or npm install) and restart the app, but never npm run build. If the app needs a build, add "prestart": "npm run build" to the scripts in package.json.

  3. Step 3: Create the site and deploy

    Websites, Add Website, Node.js as the hosting type, Start Command empty for npm start. Deploy from a public repository; set secrets with systemctl edit veloxa-app in the site's console. The Node.js hosting page has the details.

Step 4: Your domain and HTTPS

  1. Step 1: Add the DNS records

    The site's page lists an A record for the domain and for www, and a TXT ownership record. Add them where your domain's DNS is managed.

  2. Step 2: Take the domain off Bolt

    Bolt's docs say custom domains on Bolt hosting need a Pro plan, and when you switch a project between hosts they have you disconnect the domain and unpublish first. Do the same, then remove the DNS records that pointed at Bolt.

  3. Step 3: Let HTTPS issue

    Once the records resolve and the TXT record verifies, the site goes live and its certificate is issued and renewed automatically.

If the app uses Bolt Cloud

Bolt Cloud gives projects a database, sign-in, file storage and server functions. Bolt's docs, as we read them, do not say whether those keep working when the front end is served from another host or how to export the database, and its Netlify page says projects that need a database or a backend should stay on Bolt hosting.

So treat a Bolt app with a backend as two jobs: a front end that moves with the steps above, and a backend you would rebuild, for example with your own database on a VeloxaHost server. If that is more than you want, keeping Bolt hosting is a reasonable answer.

FAQ

Common questions

Can I export a Bolt project for free?
Bolt's download and GitHub pages do not name a plan requirement for exporting. Custom domains on Bolt's own hosting need a paid Bolt plan, according to its hosting docs.
Does the Bolt zip include my database?
Bolt's download instructions do not say the zip includes database contents, and we could not find a database export documented on Bolt's own pages. Plan on the zip being the code only.
Where should I host a Bolt app with a Node.js backend?
On a host that runs Node.js. A VeloxaHost Node.js site runs Node 22 with npm start on port 3000 behind HTTPS. If you need another Node version or a private repository, use a VPS.
Can I keep building in Bolt after moving the hosting?
Yes, with GitHub connected: Bolt commits each change, and you deploy the repository to your host. On VeloxaHost, a CI job can call the site's deploy webhook after each push.

Sites for your line of work

Each trade page has a starter prompt and a plain list of what the builder does not do for that business.

Try Veloxa Build by VeloxaHost

Start on the Free plan with your VeloxaHost account: hosting with HTTPS is included, and you can download your code at any time.