Skip to content

Static Sites

Available

Static Sites on Runsite Platform host pre-built front-ends — static HTML, CSS, JavaScript and assets — directly from a Git repository. Every deploy is atomic and served from a global edge network for low-latency delivery worldwide.

Static Sites are the right choice for marketing pages, documentation, single-page applications (SPA), JAMstack sites and any front-end built with frameworks like Astro, Next.js (static export), Vite, Nuxt, SvelteKit, Hugo, Jekyll or plain HTML.

Web ServicesStatic Sites
RuntimeLong-running container with CPU and memoryNo runtime — files served from edge
Scales toMultiple instancesGlobal edge automatically
Suited forAPIs, full-stack apps, services that need a processStatic front-ends, SPAs, docs
Sleep on idleYesNot applicable — always available
  • GitHub
  • GitLab
  • Bitbucket

Direct upload (drag-and-drop a build folder from the dashboard) is also supported when you do not want to connect a repository.

FieldDescription
build_commandCommand run during build, e.g. npm run build
publish_directoryFolder containing the built files, e.g. dist, build, public
root_directoryOptional sub-folder to use as the project root for monorepos
node_versionNode.js version used during build

Common framework presets:

FrameworkBuild commandPublish directory
Astronpm run builddist
Next.js (static export)next build && next exportout
Vitenpm run builddist
Nuxt 3 (static)npm run generate.output/public
SvelteKit (adapter-static)npm run buildbuild
Hugohugopublic
Jekyllbundle exec jekyll build_site

Static Sites accept build-time environment variables. They are injected into the build process — they are not available at runtime, since there is no runtime. Use them for VITE_*, NEXT_PUBLIC_* or similar build-time configuration.

When connected to a Git repository, every push to the configured branch triggers a new build and atomic deploy. Pull requests can optionally generate preview deployments on a unique URL.

Every static site gets a default URL on the runsite.site domain:

https://my-site.runsite.site

If the desired subdomain is already taken, Runsite appends a short numeric suffix automatically — for example my-site-2.runsite.site.

A small set of subdomains is reserved for the platform itself and cannot be used: docs, api, app, auth, status, cdn and a few others. The dashboard will tell you when a name cannot be used.

To use your own domain, add a custom domain from the service settings. See Custom Domains for the full DNS setup guide.

Every static deploy is replicated to edge locations around the world. Visitors are served from the closest location automatically, and assets are cached aggressively with sensible defaults that you can override per-path.

File typeDefault behavior
HTMLAlways revalidated
Hashed assets (*.[hash].js, *.[hash].css)Cached long-term
Other static assetsCached with revalidation

You can override cache headers per path through redirects/headers configuration in the project settings.

Limit
Maximum upload size per deploy1 GB
Maximum number of files per deploy50,000
Build duration30 minutes

Need a backend with your static site?

Static Sites are pure front-end. If you need APIs, dynamic rendering or background work, deploy them as a Web Service and call it from your static site over HTTPS.