Static sites
Files built once and served from the edge: landings, docs and single-page apps.
On this page
A static site is a folder of files: HTML, CSS, JavaScript, images. Run uploads it under the deploy’s own prefix in Amazon S3 and serves it through Amazon CloudFront, so every visitor gets it from a location near them.
What Run detects
| Your project | Build command | Output folder |
|---|---|---|
| Vite (React, Vue, Svelte) | vite build | dist |
| Astro without an adapter | astro build | dist |
Next.js with output: 'export' | next build | out |
| Plain HTML | none | the folder you deploy |
Set build.command and build.output in the app’s table of sypnia.toml when your project is different.
Behaviour
- Single-page apps. With
spa = true, any path without a file answersindex.html, so client-side routing works on refresh. - Clean URLs.
/aboutservesabout.htmlorabout/index.html. - Caching. Files whose names carry a hash (
app.3f9c.js) are cached for a year; HTML is revalidated on every request. A release changes which deploy answers, so visitors never mix files of two deploys. - Headers and redirects. Declared in the app’s table of
sypnia.tomlunderheadersandredirects, applied at the edge. - 404.
404.htmlin the output is the not-found page.
What it costs
Static sites use storage for each deploy’s files and the bytes sent to visitors. Credits and limits lists what is metered.