Options for the serveStatic method.

Hierarchy

  • ServeStaticOptions

Properties

edgeMaxAgeSeconds?: number

Use this value to override the default cache-control value used by serverStatic functions (whis is by default FAR_FUTURE_TTL)

permanent?: boolean

When true, assets are served from a bucket/prefix that remains available across all builds on a given environment.

rewritePathSource?: string

Defines the rewrite source in serveStatic as this cannot be inferred from the criteria as in case when path criteria is string array (InOperatorValues), we need to decide which source to use for multiple paths.

Default

'/:path*'

statusCode?: HttpStatusCode

Sets the status code for the response.

Generated using TypeDoc