Skip to main content
Square Cloud Sites service overview

Why choose Square Cloud?

Every site is served from behind Cloudflare’s global network, with free TLS, a free CDN and DDoS protection wired in by default: the same production-grade edge whether you deploy a static landing page or a full framework SSR app. You configure a subdomain; we handle certificates, caching and routing.

Cloudflare edge + Square Shield

Every site sits behind the Cloudflare WAF with Square Shield on top: DDoS mitigation, bot filtering and free, auto-renewing TLS included at no extra cost.

NVMe + 10Gbps, isolated

Enterprise NVMe SSDs and 10Gbps uplinks, with your app in an isolated container. Paired with a free global CDN, static assets are cached at the edge and served close to every visitor.

Managed DNS

Bring your own domain, certificate handled for you: attach a domain you already own (Standard and up), create the DNS records the dashboard shows at your DNS provider, and Square Cloud issues and renews the TLS certificate as soon as they propagate.

Instant snapshots

One-click restore points, included at no extra cost. Recover from a broken deploy in seconds with no data loss and zero downtime.

Supported environments

Host your site with the stack you already use. Start with the website and API hosting guide, then pick your framework below: each card opens a step-by-step guide with code.

Frameworks

Angular

Astro

Gatsby

Next.js

Nuxt

Phoenix

Preact

Qwik

React

React Router (Remix)

Ruby on Rails

SolidJS

Vite

Vue

Static HTML/CSS

APIs and backends

Django

Express

FastAPI

Fastify

Flask

Laravel

NestJS

Spring Boot

Not on the list? Virtually any other framework or library runs too: if it starts a web server on port 80, it runs on Square Cloud.

Languages

JavaScript

Bun

Deno

Python

Java

Rust

Elixir

PHP

Go

C#

Ruby

HTML/CSS

Developer ecosystem

Deploy and manage your site from wherever you work:

How to host my website?

Add a configuration file

Create a squarecloud.app file at the root of your project. The configuration file guide explains every field. A website also needs:
  • SUBDOMAIN: the address of your site. SUBDOMAIN=test serves it at test.squareweb.app.
  • MEMORY: the RAM reserved for it, 512 MB at least.
Set SUBDOMAIN before the first upload. An application deployed without it can’t become a website later: you would have to upload it again as a new application.

Include your dependencies file

Keep your dependencies file in the project: package.json for Node.js, requirements.txt or pyproject.toml for Python. Square Cloud installs everything it lists on the server. Leave out built-in modules, such as fs in Node.js or random in Python, since they come with the language.

Zip the project

Compress your code, the configuration file and the dependencies file into a .zip. Leave out node_modules, __pycache__, lockfiles such as package-lock.json and other generated files: dependencies are installed on the server, and a smaller upload deploys faster. The CLI and the VS Code extension leave lockfiles out for you. Need pinned versions? Add !package-lock.json to your squarecloud.ignore file.

Upload your site

Your app must listen on port 80 and host 0.0.0.0. The runtime images already set the PORT and HOST environment variables to these values, so a server that reads them needs no change. Visitors reach your site over HTTPS, and Square Cloud handles the certificate.
Send the .zip on the upload page. Square Cloud installs the dependencies, sets up the environment from your configuration file and puts your site online.
Uploading application to Square Cloud

Something went wrong?

App won't start

Fix a deploy that fails or crashes on boot: a port already in use, missing modules, INVALID_DEPENDENCY or not enough RAM.

All troubleshooting guides

Find the fix for an error code or a symptom across apps, bots and databases.

Frequently asked questions

We recommend the Standard plan, from R44.99/month∗∗with4GBofRAMand4vCPUs,whichalsounlockscustomdomains.Alightersitealsorunsonthe∗∗Hobby∗∗plan,from∗∗R44.99/month** with 4 GB of RAM and 4 vCPUs, which also unlocks custom domains. A lighter site also runs on the **Hobby** plan, from **R12.49/month: a website needs at least 512 MB of RAM. See Plans and Pricing for the full comparison.
Yes. Every web deploy includes a *.squareweb.app subdomain at no extra cost, as part of your plan. It’s ready to use as soon as you set the SUBDOMAIN field in your configuration file.
Custom domains are available from the Standard plan and up. Square Cloud does not register or sell domain names: the feature connects a domain you already own at a registrar, one hostname per application (such as example.com or www.example.com). Follow how to set up your own domain for the DNS records, and see why a domain hasn’t propagated yet if it doesn’t load. To attach it from code, use Set Custom Domain.