Guide

Bolt.new to production: Netlify deploy, custom domain and the refresh-404 fix

Last checked 4 Dec 2026 · 15 min read · by Ship Weekend

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

  1. 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.³
  2. Use the Publish and Update buttons, not a chat prompt. Bolt says the buttons don't use tokens, but asking Bolt to publish does.³
  3. 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.³
  4. 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

  1. 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.⁴
  2. 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.⁴
  3. Click Publish, then Publish again. Bolt creates a netlify.app address for you.⁴ Only Teams plans can rename that address.⁴
  4. Already live on Bolt hosting? Disconnect any custom domain, unpublish, then switch the provider.⁴
  5. 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.⁶ ⁷

  1. Click the project name → All project settings → Domains & Hosting → Connect a domain you own. Enter the domain and click Verify and add domain.⁷
  2. 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.⁷
  3. At your registrar, add the records from Bolt's DNS configuration page:⁷ ⁸ - www: CNAME to site-dns.bolt.host - root (@): ALIAS, ANAME or flattened CNAME to site-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 list 75.2.60.5). Keep the www CNAME
  4. 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.⁸
  5. On Cloudflare DNS, turn the proxy off (grey cloud, "DNS only") for every Bolt record. With the proxy on, SSL fails.⁸
  6. Wait. Most domains connect within a few hours, but it can take up to 24 hours.⁷ Check the Status column on Domains & Hosting: Secure means done, Pending means it's still being set up, and Warning means 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:

/* /index.html 200

json { "$schema": "https://openapi.vercel.sh/vercel.json", "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] }

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.

  1. 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.¹⁰
  2. Check the framework. A static Vite app works on all three hosts. A server-rendered app needs a host that runs server code.¹
  3. 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 build and the dist folder.²⁵ Check that the output folder matches your build.
  4. Set the environment variables. Bolt keeps env vars in the project's .env file, which is part of your code. Any value your front-end code reads (like a VITE_ variable) is sent to every visitor's browser, so anyone can see it.¹² If .env isn't in the repo, add the same VITE_ 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 a VITE_ variable. See blank page or undefined env vars after deploy if the new site loads blank.
  5. 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.¹³
  6. 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 example https://yourapp.com/**). Our Supabase auth redirect guide covers the details.
  7. 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.
  8. 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.²⁶
  9. 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

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

  1. 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
  2. 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
  3. 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
  4. 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
  5. Bolt help, Publishing issues (100 MB limit, build output directory, "contains no HTML file", "Page not found" and the /* /index.html 200 rule, .bolt.host network errors, manual Netlify publish, duplicated projects): https://support.bolt.new/troubleshooting/publish-issues
  6. Bolt help, Buy or connect a custom domain (paid plans only, downgrade): https://support.bolt.new/bolt-cloud/domains
  7. Bolt help, Connect your domain (published site required, TXT for subdomains, site-dns.bolt.host CNAME/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
  8. 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
  9. 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
  10. Bolt help, Manage your projects (download a project as a ZIP, desktop only): https://support.bolt.new/managing-projects/projects-files
  11. 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
  12. 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
  13. 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
  14. 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
  15. Bolt help, Stripe (webhook endpoint registration and signature verification handled automatically): https://support.bolt.new/integrations/stripe
  16. Netlify docs, Redirects and rewrites (_redirects in the publish directory, must end up in the deployed folder): https://docs.netlify.com/manage/routing/redirects/overview/
  17. 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/
  18. 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/
  19. Netlify docs, Get started with environment variables (changes require a build and deploy): https://docs.netlify.com/build/environment-variables/get-started/
  20. Netlify docs, Get started with domains (Domain management, bring your own domain): https://docs.netlify.com/manage/domains/get-started-with-domains/
  21. Vercel docs, Vite on Vercel (SPA deep-linking rewrite in vercel.json, Git integration): https://vercel.com/docs/frameworks/frontend/vite
  22. Vercel docs, Environment variables (changes apply only to new deployments): https://vercel.com/docs/environment-variables
  23. 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
  24. Cloudflare docs, Serving Pages (SPA fallback to root index.html unless there's a top-level 404.html): https://developers.cloudflare.com/pages/configuration/serving-pages/
  25. Cloudflare docs, Build configuration (React (Vite) preset: npm run build, dist): https://developers.cloudflare.com/pages/configuration/build-configuration/
  26. Cloudflare docs, Custom domains (apex needs a Cloudflare zone; subdomain CNAME to pages.dev after adding it in Pages, otherwise 522): https://developers.cloudflare.com/pages/configuration/custom-domains/
  27. Bolt help, Advanced database settings (claim your Bolt Database in Supabase, Pro or Teams plan): https://support.bolt.new/bolt-cloud/database/advanced