# ServeStaticOptions

**Kind:** Type

**Source:** [`src/middleware/serve-static/index.ts`](https://github.com/honojs/hono/blob/main/src/middleware/serve-static/index.ts#L13)

**Part of:** [Middleware](subsystem-src-middleware)

## Definition

```ts
{ root?: string path?: string precompressed?: boolean mimes?: Record<string, string> rewriteRequestPath?: (path: string) => string onFound?: (path: string, c: Context<E>) => void | Promise<void> onNotFound?: (path: string, c: Context<E>) => void | Promise<void> }
```

## Relationships

- IMPORTS → `COMPRESSIBLE_CONTENT_TYPE_REGEX`
- IMPORTS → `getMimeType`
- IMPORTS → `tryDecodeURI`
- IMPORTS → `defaultJoin`
