Hosting & Deployment / STATICLAUNCH JOURNAL

How to Host a Business Website for Free

A practical Astro and Cloudflare Pages hosting guide with setup steps, provider limits, DNS safeguards and the expenses free hosting does not cover.

Four Media Group · · 2 min read

What free hosting means

A simple business website with prebuilt HTML, CSS, JavaScript and images can often run on a free static hosting plan. Cloudflare Pages offers free static asset requests and a free plan with limits, including up to 20,000 files per site as documented on November 30, 2026. Check current build, project, file-size and custom-domain limits before launch. Dynamic Functions use Workers quotas and may have different costs.

Step 1: Choose an owner-controlled repository

Create a GitHub account or organization owned by the business. Enable multifactor authentication and keep recovery codes private. Start with a free StaticLaunch template or an existing Astro project. Exclude API keys, local environment files, private records and generated sensitive data from source and builds.

Step 2: Build locally

Install the supported Node version for your project, then run npm install (or npm ci when a lockfile exists), npm run build, and npm run preview. Confirm the generated dist directory contains the public HTML and assets you expect. Check forms, links, responsive layouts and keyboard navigation. Plain HTML sites do not need an Astro build.

Step 3: Connect Cloudflare Pages

In your own Cloudflare dashboard, create a Pages project using Git integration and authorize only the repository required. For a typical Astro project, choose the production branch, set npm run build as the build command and dist as the output directory. Confirm the project's Node version and any environment variables. The initial deployment gives you a preview URL; test it before configuring production.

Step 4: Attach your own domain

Inventory existing DNS records, especially MX, SPF, DKIM, DMARC and service verification records. Add your domain through the Pages custom-domain flow and follow the provider's current DNS guidance. Do not delete email records or change nameservers blindly. Verify HTTPS, canonical URLs, redirects and business mail after cutover.

Step 5: Maintain the independent site

Push approved changes to the configured branch and review build results. Keep your source, lockfile, account access and backup procedure documented. Test inquiry forms and integrations regularly. Monitor provider usage, site availability and dependency alerts.

What is not included

Domain registration, business email, custom development, some form services, paid APIs, commerce processing and usage beyond free-plan allowances may cost money. A free hosting tier is not a service-level guarantee. If the site has critical transactions, consider appropriate paid support and monitoring.

Frequently asked questions

Can I really pay $0 per month for static hosting?

Yes, if the project remains within the provider's free-plan terms and limits.

Do I have to buy a domain?

A provider subdomain may be available, but a branded domain usually has a registration fee.

Can I host a form or booking system for free?

Possibly, depending on the external service and usage; never assume dynamic features are unlimited.

Sources and further reading

Market statistics and hosting terms are time-sensitive; verify current figures before relying on them.

TAKE THE NEXT STEP

Launch anything. Own everything.

Build, migrate and maintain a website you control. StaticLaunch is a free educational resource from Four Media Group LLC.

WordPress migration playbook · Academy · AI workflows · Launch your site

Continue reading

All articles →