Guide
Bolt.new to production: Netlify deploy, custom domain and the refresh-404 fix
Short answer: click Publish in Bolt to go live on a free .bolt.host address. To use Netlify instead, connect your Netlify account and set Hosting Provider to Netlify under Domains & Hosting before the first publish.¹ ⁴ A custom domain on Bolt hosting needs a paid plan: add it under Domains & Hosting, then point both www and the root domain to site-dns.bolt.host (a CNAME for www; an ALIAS-type record for the root, and Bolt's DNS page shows the values).⁶ ⁷ If pages other than the home page show "Page not found" when you refresh them, add a _redirects file with /* /index.html 200.⁵
Most Bolt apps reach production in one of three ways: Bolt hosting, Netlify through Bolt's integration, or your own host (Vercel, Netlify or Cloudflare Pages) fed from GitHub. This guide covers all three. Everything here was checked against Bolt's help center and the hosts' own docs on 4 Dec 2026.
Which way should you host?
| Option | Good for | Watch out for |
|---|---|---|
| Bolt hosting (default) | One-click publish, apps that use Bolt Database and server functions | Custom domains are paid plans only. Free sites stop showing when the monthly limit is hit¹ ² |
| Netlify through Bolt | Teams that want Netlify's deploy history and logs | Bolt says Netlify can't host a database or backend (the parts that save user accounts or orders). Stay on Bolt hosting if you need one⁴ |
| Your own host via GitHub (Vercel, Netlify, Cloudflare Pages) | Leaving Bolt, or full control of builds and settings | You set env vars, sign-in URLs, the domain and the rule that makes pages load on refresh yourself¹¹ ¹² |
Bolt hosting publishes websites and single-page apps (React, Vue, Svelte and similar), plus Next.js apps with server rendering. Apps on other server-rendered frameworks, such as TanStack Start, SvelteKit, Remix or Astro, must be built as static HTML first.¹ If you're not sure what you have, ask Bolt which framework your project uses.¹
Option A: publish on Bolt hosting
- In the top-right corner, click Publish, then click Publish again in the menu. Wait about a minute, then open the link that appears in the chat.³
- Use the Publish and Update buttons, not a chat prompt. Bolt says the buttons don't use tokens, but asking Bolt to publish does.³
- Your edits don't go live on their own. To push changes, open the Publish menu and click Update.³ If you edited server functions by hand, publishing doesn't deploy them. Ask Bolt to deploy them.³
- On a paid plan you can run a security audit from the Publish menu before you publish.³ You can also publish privately, so only your team and invited people can see it. A site with a custom domain can only be public.³
Hosting limits (checked 4 Dec 2026). Free covers up to 10 GB of bandwidth and 333,333 requests a month, with a hard limit. Pro covers up to 30 GB and 1 million requests, and you can pay as you go above that, up to a spending cap.² The limits apply to your whole Bolt account, not to each project.² A Free site that hits the limit stays offline until the next billing cycle.² Free sites also show a Made in Bolt badge, which a paid plan removes.¹ Expecting a launch spike on Pro? Raise the cap in advance: on the Bolt homepage, click your account or workspace name, then Settings → Cloud → Change spending limit.²
Option B: publish to Netlify from Bolt
- Connect Netlify: open any project, click the project name (top left) → All project settings. Under Account settings, click Applications, then Connect in the Netlify section, and log in to Netlify.⁴
- Choose Netlify: in All project settings → Domains & Hosting, pick Netlify from the Hosting Provider dropdown. The dropdown only appears if the project is unpublished, Netlify is connected and you're allowed to manage the project's domains.⁴
- Click Publish, then Publish again. Bolt creates a
netlify.appaddress for you.⁴ Only Teams plans can rename that address.⁴ - Already live on Bolt hosting? Disconnect any custom domain, unpublish, then switch the provider.⁴
- Add your custom domain in Netlify, not Bolt. Bolt says custom domains don't carry over between Bolt and Netlify. Add them in your Netlify dashboard's Domain management section.⁴ ²⁰
If Bolt fails to publish to Netlify, do it by hand. Run npm run build in Bolt, click Download, unzip, then follow Netlify's drag-and-drop instructions.⁵ Netlify accepts a pre-built output folder (often dist or build) dropped onto Netlify Drop or onto the dropzone on your site's Deploys page.⁵ ¹⁸ A dropped site isn't linked to Git, so you repeat the drop for every update.¹⁸
Duplicated or forked the project? The copy loses its Netlify connection. Reconnecting creates a new Netlify site, so move your custom domain to the new site.⁵
Connect a custom domain on Bolt hosting
You need a paid plan, and the project must already be published.⁶ ⁷
- Click the project name → All project settings → Domains & Hosting → Connect a domain you own. Enter the domain and click Verify and add domain.⁷
- Subdomain (like
app.example.com)? Add the TXT record Bolt shows at your registrar, then click Verify and add subdomain. This usually takes 3 to 5 minutes.⁷ - At your registrar, add the records from Bolt's DNS configuration page:⁷ ⁸
-
www: CNAME tosite-dns.bolt.host- root (@): ALIAS, ANAME or flattened CNAME tosite-dns.bolt.host- registrar has none of those? Add an A record for the root with the IP shown on the DNS page (Bolt's docs list75.2.60.5). Keep thewwwCNAME - Delete old A records for the root that point to a previous host. Bolt warns that even one conflicting A record can stop the SSL certificate.⁸
- On Cloudflare DNS, turn the proxy off (grey cloud, "DNS only") for every Bolt record. With the proxy on, SSL fails.⁸
- Wait. Most domains connect within a few hours, but it can take up to 24 hours.⁷ Check the Status column on Domains & Hosting:
Securemeans done,Pendingmeans it's still being set up, andWarningmeans something needs fixing.⁸ If a domain is still missing its certificate after you fix DNS, click Ensure SSL certificate.⁸
Domains bought through Bolt skip the DNS work and usually connect in 5 to 10 minutes.⁷ ⁸ A subdomain can be the primary domain only if you bought the domain through Bolt.⁷
The refresh-404 fix ("Page not found")
Symptom: the home page loads, but opening /login or /dashboard directly, refreshing it, or following a shared link shows "Page not found".⁵
Cause: single-page apps load every page from one index.html. A direct request for /login looks for a file that doesn't exist. A rewrite rule fixes this by serving index.html for those paths so your app can show the right page.⁵
Fix, by host:
- Bolt hosting and Netlify: add a
_redirectsfile (no file extension) to the published output with this line. Bolt's suggested prompt: "Add a _redirects file with the rule/* /index.html 200so it's included in the published files. If this project has a netlify.toml file, add the same rule to it as a redirect instead." Then click Publish → Update.⁵ Netlify reads_redirectsfrom the publish directory, so in a Vite app the file usually lives inpublic/and gets copied intodist/. If you have other rules, put this one last.¹⁶ ¹⁷
/* /index.html 200
- Vercel: add
vercel.jsonat the project root:²¹
json
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}
- Cloudflare Pages: usually nothing to do. If the build output has no top-level
404.html, Pages serves the rootindex.htmlfor unknown paths. A404.htmlat the root of the output turns that fallback off.²⁴
Test it: open a page other than the home page on the live site, refresh, and check it loads.⁵
Option C: leave Bolt hosting (Vercel, Netlify or Cloudflare Pages)
Bolt has no Vercel integration in its help center. Its GitHub docs say that once your code is in GitHub, you can host it with Bolt, Netlify or "another service you choose".¹¹ The AI app builder exit matrix compares Bolt's export with Lovable, Replit, v0, Rocket and Base44.
- Export the code. Click the GitHub icon (top right) and create a new repository. Bolt then commits your changes automatically and pulls in GitHub changes every 30 seconds.¹¹ You can also click the project title → Download for a ZIP, on desktop only.¹⁰
- Check the framework. A static Vite app works on all three hosts. A server-rendered app needs a host that runs server code.¹
- Import the repo on the host. Netlify runs your build and deploys on every push once the repo is linked.¹⁸ Vercel's Git integration also creates a preview URL for each pull request.²¹ For a Vite app, Cloudflare Pages' React (Vite) preset uses
npm run buildand thedistfolder.²⁵ Check that the output folder matches your build. - Set the environment variables. Bolt keeps env vars in the project's
.envfile, which is part of your code. Any value your front-end code reads (like aVITE_variable) is sent to every visitor's browser, so anyone can see it.¹² If.envisn't in the repo, add the sameVITE_values in the host's settings. Env var changes only apply to new deploys on Netlify and Vercel, so trigger a new deploy (for example, push a commit) after changing them.¹⁹ ²² Secrets are different: Bolt only makes them available to its server functions and never writes them to a file.¹² Never move a secret key into aVITE_variable. See blank page or undefined env vars after deploy if the new site loads blank. - Decide where the database lives. Bolt Database and server functions stay on Bolt Cloud.¹² ⁴ Databases in live Bolt-hosted projects aren't paused for inactivity, but unpublished projects and Netlify-hosted ones can be paused after six days of low use.¹³ To move the database to your own Supabase account, use Claim (Pro or Teams plan).²⁷ After that, Supabase's plan rules apply. On Supabase's Free plan, inactive databases are paused after a week.¹³
- Add the new address to sign-in settings. Bolt sets the Site URL and URI allow list for Bolt addresses automatically. The default Site URL is
localhost:3000, and unlisted addresses fall back to the Site URL.¹⁴ Open the database icon → Authentication and, in the advanced options, add your new domain (for examplehttps://yourapp.com/**). Our Supabase auth redirect guide covers the details. - Check Stripe. Bolt registers webhook endpoints and verifies their signatures for you.¹⁵ Its docs don't say where those endpoints point after a move, so check in the Stripe dashboard.
- Move the domain last. Test on the host's temporary URL first. Then remove the domain in Bolt (Domains & Hosting → three dots → Remove domain)⁷ and delete the old Bolt records. Add the domain on the new host: on Vercel it's Settings → Domains in your project.²³ On Netlify, use Domain management.²⁰ On Cloudflare Pages, a root domain must be a zone in your Cloudflare account. A subdomain can use a CNAME to
<project>.pages.dev, but only after you add it in the Pages dashboard. Otherwise you get a 522 error.²⁶ - Unpublish the Bolt site once the new one works: Publish menu → Unpublish. If a custom domain is still connected, disconnect it first.³
Leaving Rocket.new or another builder at the same time? The test steps in our Rocket.new move-out checklist work for any app after a move: sign-up, deep-link refresh, payments and the domain.
What usually goes wrong
- "Page not found" on refresh. No SPA fallback. Add the
_redirectsrule orvercel.jsonabove, or remove the top-level404.htmlon Cloudflare Pages.⁵ ²⁴ Contains no HTML filewhen publishing. The app is server-rendered (TanStack Start, SvelteKit, Remix, Astro). Ask Bolt to build it as static HTML (SPA mode or prerendering), and move code that uses secret keys into server functions.⁵Could not find a build output directory. Paste the error into the chat and ask Bolt to fix how the project builds, then publish again.⁵Project is too large to deploy. Projects must be under 100 MB. Usually it's images or videos, so move them to external storage.⁵- Domain stuck on Pending or Warning. Missing
wwwor root record, an AAAA record where ALIAS was needed, the Cloudflare proxy turned on, or an old A record.⁸ ⁹ - "Another project is already using this domain". The domain is still attached to another Bolt project or a Netlify site. Remove it there first.⁹
- Custom domain gone after switching to Netlify. Domains don't carry over. Add the domain again in Netlify's Domain management.⁴ ⁹
- Edits not live. Bolt doesn't republish by itself. Click Update. Server functions you changed by hand need a separate deploy: ask Bolt.³
- Sign-up or reset links go to localhost after moving hosts. Add the new domain to the Site URL and URI allow list.¹⁴
- "This site can't be reached" or
ERR_SSL_PROTOCOL_ERRORon.bolt.host. This can be your network or DNS, not your site. Try on mobile data with any VPN turned off.⁵ - Free site went offline mid-month. It hit the Free hosting limit. It comes back next billing cycle, or upgrade.²
FAQ
Can I use a custom domain with Bolt's free plan? No. On Bolt hosting, custom domains are paid plans only. Free projects publish to a .bolt.host address. If you downgrade, sites already on a custom domain stay online, but you can't republish to it.
How do I deploy a Bolt.new app to Netlify? Connect Netlify under All project settings → Applications. Then, while the project is unpublished, pick Netlify as the Hosting Provider under Domains & Hosting and click Publish. You can also run npm run build, download the project and drag the build folder onto Netlify Drop.
Can I deploy a Bolt app to Vercel? Yes, through GitHub. Bolt has no Vercel integration in its help center. Connect the project to a GitHub repository, import that repository into Vercel, add your VITE_ environment variables, and add a vercel.json rewrite if your app is a single-page app.
Why does my published Bolt site show "Page not found" when I refresh a page? Your app is a single-page app and the host has no rule to serve index.html for other paths. On Bolt hosting and Netlify, add a _redirects file with /* /index.html 200. On Vercel, add a rewrite in vercel.json. Cloudflare Pages does it automatically unless there's a top-level 404.html.
Will my Bolt database keep working if I host the site somewhere else? Bolt Database stays on Bolt Cloud. Bolt only promises not to pause databases in live Bolt-hosted projects. Unpublished and Netlify-hosted projects can be paused after six days of low use. Claim the database into your own Supabase account (Pro or Teams) if you're leaving for good.
Why is my Bolt custom domain stuck on Pending? External domains can take up to 24 hours after DNS is correct. Check you have both the www CNAME and the root ALIAS (or the A record fallback). Also check the Cloudflare proxy is off and no old A records remain, then click Ensure SSL certificate.
Going live? Run your new URL through the free Quick Check. In about 20 seconds it looks for leaked keys, exposed .env files, deep-link refresh, HTTPS and SEO. The $49 Launch Check adds Supabase grants and webhook checks with a plain-English fix list. Before you announce, also check Supabase auth rate limits and the Supabase RLS launch checklist.
Sources
- Bolt help, Host your Bolt project (what Bolt hosting publishes, Next.js server rendering, other SSR frameworks must be static, custom domains for paid users, hosting limits, downgrade effects): https://support.bolt.new/bolt-cloud/hosting
- Bolt help, Bolt Cloud hosting plans (Free 10 GB + 333,333 requests/month hard limit; Pro 30 GB + 1M requests with pay-as-you-go up to a spending cap; account-wide; Settings → Cloud → Change spending limit): https://support.bolt.new/bolt-cloud/hosting/plans
- Bolt help, Publish your project to a live website (Publish/Update buttons don't use tokens, changes need Update, security audit on paid plans, custom-domain sites are public only, unpublish): https://support.bolt.new/bolt-cloud/hosting/publish
- Bolt help, Netlify for hosting (connect under Applications, Hosting Provider dropdown conditions, netlify.app URL rename Teams only, switching providers, domains don't carry over, Netlify can't host a database or backend): https://support.bolt.new/integrations/netlify
- Bolt help, Publishing issues (100 MB limit, build output directory, "contains no HTML file", "Page not found" and the
/* /index.html 200rule,.bolt.hostnetwork errors, manual Netlify publish, duplicated projects): https://support.bolt.new/troubleshooting/publish-issues - Bolt help, Buy or connect a custom domain (paid plans only, downgrade): https://support.bolt.new/bolt-cloud/domains
- Bolt help, Connect your domain (published site required, TXT for subdomains,
site-dns.bolt.hostCNAME/ALIAS, A fallback, up to 24 hours, Bolt-bought domains 5–10 minutes, subdomain as primary, disconnect): https://support.bolt.new/bolt-cloud/domains/connect - Bolt help, Domain status, HTTPS, and SSL certificates (Secure/Pending/Warning, A record fallback 75.2.60.5, Cloudflare proxy must be DNS only, conflicting A records, Ensure SSL certificate): https://support.bolt.new/bolt-cloud/domains/ssl-https
- Bolt help, Domain issues ("Another project is already using this domain", ALIAS not AAAA, domain not working after switching to Netlify): https://support.bolt.new/troubleshooting/domain-issues
- Bolt help, Manage your projects (download a project as a ZIP, desktop only): https://support.bolt.new/managing-projects/projects-files
- Bolt help, GitHub for version control (create a repository, automatic commits, checks GitHub every 30 seconds, host with Bolt, Netlify or another service): https://support.bolt.new/integrations/git
- Bolt help, Secrets (secrets only for server functions and never written to files; env vars live in
.env, part of your code, and browser-read values are public): https://support.bolt.new/bolt-cloud/database/secrets - Bolt help, Bolt Database (paused after six days of low usage; live Bolt-hosted projects aren't paused; unpublished and Netlify-hosted can be; Supabase Free pauses after a week): https://support.bolt.new/bolt-cloud/database
- Bolt help, Authentication (Site URL and URI allow list, wildcards, updated automatically by Bolt, default
localhost:3000, fallback to Site URL): https://support.bolt.new/bolt-cloud/database/authentication - Bolt help, Stripe (webhook endpoint registration and signature verification handled automatically): https://support.bolt.new/integrations/stripe
- Netlify docs, Redirects and rewrites (
_redirectsin the publish directory, must end up in the deployed folder): https://docs.netlify.com/manage/routing/redirects/overview/ - Netlify docs, Rewrites and proxies (history pushState and single-page apps:
/* /index.html 200, typically the last rule): https://docs.netlify.com/manage/routing/redirects/rewrites-proxies/ - Netlify docs, Create deploys (deploy with Git, drag and drop to Netlify Drop or the Deploys page, pre-built folders accepted): https://docs.netlify.com/deploy/create-deploys/
- Netlify docs, Get started with environment variables (changes require a build and deploy): https://docs.netlify.com/build/environment-variables/get-started/
- Netlify docs, Get started with domains (Domain management, bring your own domain): https://docs.netlify.com/manage/domains/get-started-with-domains/
- Vercel docs, Vite on Vercel (SPA deep-linking rewrite in
vercel.json, Git integration): https://vercel.com/docs/frameworks/frontend/vite - Vercel docs, Environment variables (changes apply only to new deployments): https://vercel.com/docs/environment-variables
- Vercel docs, Adding & configuring a custom domain (Settings → Domains, www prompt for apex domains): https://vercel.com/docs/domains/working-with-domains/add-a-domain
- Cloudflare docs, Serving Pages (SPA fallback to root
index.htmlunless there's a top-level404.html): https://developers.cloudflare.com/pages/configuration/serving-pages/ - Cloudflare docs, Build configuration (React (Vite) preset:
npm run build,dist): https://developers.cloudflare.com/pages/configuration/build-configuration/ - Cloudflare docs, Custom domains (apex needs a Cloudflare zone; subdomain CNAME to
pages.devafter adding it in Pages, otherwise 522): https://developers.cloudflare.com/pages/configuration/custom-domains/ - Bolt help, Advanced database settings (claim your Bolt Database in Supabase, Pro or Teams plan): https://support.bolt.new/bolt-cloud/database/advanced