Kinsta can build and push your static site project to the 260+ data centers in the Cloudflare global network — and we do it for free.
Wait! Fast and free?
Yes, and to help explain how we do that, let’s back up and answer the question: What is a static website?
Static Site Basics
“Static Site Hosting serves files without any kind of backend processing,” says Andras Gerencser, Director of Development at Kinsta. “This simplicity makes it an efficient, high-performance hosting option.”
“Some basic examples include personal portfolios, CV websites, simpler business websites, marketing pages, or documentation sites,” he says. “It’s also possible to use static site generators to compile static assets from other sources, such as Markdown files or a CMS.”
“They do this by providing themes, plugins, and automating repetitive tasks such as replacing text, creating links between pages, image optimization, code minification, or converting a document into HTML,” he says.
And Gerencser points out that “static sites” can be more dynamic than that label implies.
“You can use Static Site Hosting to set up a frontend with any kind of backend, such as a Node.js service on our Application Hosting platform or a headless WordPress running on our Managed WordPress Hosting platform,” he says.
Fuller calls that a “mixed approach”:
What You Get for Free With Static Site Hosting
In addition to the tools used to build and deploy your static sites, free SSL certificates, support for custom domain names, and an optional API for site management, Kinsta’s free hosting is available for those whose projects adhere to the following (generous) limits:
- 100 static sites per company
- 1 concurrent build per site
- 1 GB build image size per site
- 600 build minutes per month per company
- 100 GB bandwidth per month per company
How Static Site Hosting Works at Kinsta
Developers deploying a static site with Kinsta begin with their project in a Git repository hosted by BitBucket, GitHub, or GitLab. A connection to the Git repository and configuration settings required to build and deploy the site is managed through MyKinsta.
But your website doesn’t have to be built using a static site generator. As long as you can get your static web assets into a repository at one of the supported Git hosts, your project can be deployed as a static site.
When you add a static site that is built when deployed, MyKinsta can automatically detect the build settings required by a variety of popular static site generators:
“After that,” says Gerencser, “MyKinsta passes the files from your repository to an isolated pod in one of our Kubernetes clusters, which can run your build command if needed. The output — your static files — will then be uploaded to Cloudflare’s R2 storage.”
“This means that your files are distributed to more than 260 Cloudflare servers around the world — always delivering them from the nearest location to your website visitors,” he says.
With your static site up and running, you can make it public in style with your own domain name and free SSL support:
Time to Start Building Your Static Site
If you want to get up and running quickly with Static Site Hosting at Kinsta, see our growing library of quick-start examples for compatible static site generators. These examples include Git repositories you can copy to kick-start your own deployments.
This is a companion discussion topic for the original entry at https://kinsta.com/changelog/static-site-hosting/