# Reference: runtime type static

URL: https://scalws.com/docs/reference/runtime-static/
Source: `docs/reference/schema` in the ScalWS repository

<h3 id="tenants-.applications-.routes-.runtime.static.index"><code>tenants[].applications[].routes[].runtime&lt;static&gt;.index</code></h3>

| | |
|---|---|
| Syntax | `index: [<string>, ...]` |
| Default | `["index.html"]` |
| Context | `tenants[].applications[].routes[].runtime (type: static)` |
| Reload | applies on reload |

File names served for a directory request, tried in order.


<h3 id="tenants-.applications-.routes-.runtime.static.precompressed"><code>tenants[].applications[].routes[].runtime&lt;static&gt;.precompressed</code></h3>

| | |
|---|---|
| Syntax | `precompressed: true \| false` |
| Default | `false` |
| Context | `tenants[].applications[].routes[].runtime (type: static)` |
| Reload | applies on reload |

Serve `<file>.br` / `<file>.gz` siblings to clients that accept them.


<h3 id="tenants-.applications-.routes-.runtime.static.root"><code>tenants[].applications[].routes[].runtime&lt;static&gt;.root</code></h3>

| | |
|---|---|
| Syntax | `root: <string>` |
| Default | `none` |
| Context | `tenants[].applications[].routes[].runtime (type: static)` |
| Reload | applies on reload |

Document root. Defaults to the application's `root`.


<h3 id="tenants-.applications-.runtime.static.index"><code>tenants[].applications[].runtime&lt;static&gt;.index</code></h3>

| | |
|---|---|
| Syntax | `index: [<string>, ...]` |
| Default | `["index.html"]` |
| Context | `tenants[].applications[].runtime (type: static)` |
| Reload | applies on reload |

File names served for a directory request, tried in order.


<h3 id="tenants-.applications-.runtime.static.precompressed"><code>tenants[].applications[].runtime&lt;static&gt;.precompressed</code></h3>

| | |
|---|---|
| Syntax | `precompressed: true \| false` |
| Default | `false` |
| Context | `tenants[].applications[].runtime (type: static)` |
| Reload | applies on reload |

Serve `<file>.br` / `<file>.gz` siblings to clients that accept them.


<h3 id="tenants-.applications-.runtime.static.root"><code>tenants[].applications[].runtime&lt;static&gt;.root</code></h3>

| | |
|---|---|
| Syntax | `root: <string>` |
| Default | `none` |
| Context | `tenants[].applications[].runtime (type: static)` |
| Reload | applies on reload |

Document root. Defaults to the application's `root`.
