# Site

URL: /docs/platform/workloads/site

A static web app, served from a Bucket through its own Route.

![funcdctl applies a Site. The Site reconciler resolves its bundle image to a digest, copies the bundle into the Site's Bucket with the index last, and writes the Site's Route. A browser's request goes through the edge and the Route to the Bucket's files](</assets/site.drawio-Bm8BC7Yd.svg>)

A Site serves a static web app. Its spec names the bundle, which is an OCI image, and the Route that the Site owns.
The Site reconciler resolves the image to a digest once for each change of the spec. It copies the bundle into the
Site's Bucket, under a prefix for that digest, and writes the index last, so that the index's presence means that the
copy is complete. It then writes the Site's Route.

The edge serves the files directly from the Bucket, with no worker: it resolves the index, sets the content types and
answers conditional requests. When a deploy fails, the previous digest keeps serving. The Site's status comes from its
Route. With `spa`, an unmatched path serves the index, so that a client-side router handles the routing.
`runtimeConfig` adds a generated `config.json` beside the bundle, so that each deployment sets its own values without
a rebuild.
