Skip to content

Documentation / @agentick/gateway / ServeStaticOptions

Interface: ServeStaticOptions ​

Defined in: gateway/src/serve-static.ts:17

Properties ​

cacheControl? ​

optional cacheControl: string

Defined in: gateway/src/serve-static.ts:21

Cache-Control header value (default: "public, max-age=3600")


fallback? ​

optional fallback: string | false

Defined in: gateway/src/serve-static.ts:19

SPA fallback file (default: "index.html"). Set to false to disable.


prefix? ​

optional prefix: string

Defined in: gateway/src/serve-static.ts:23

Strip this prefix from the URL path before resolving files

Released under the ISC License.