Worker Script Assets Config Args
data class WorkerScriptAssetsConfigArgs(val _headers: Output<String>? = null, val _redirects: Output<String>? = null, val htmlHandling: Output<String>? = null, val notFoundHandling: Output<String>? = null, val runWorkerFirst: Output<Boolean>? = null, val serveDirectly: Output<Boolean>? = null) : ConvertibleToJava<WorkerScriptAssetsConfigArgs>
Constructors
Properties
Link copied to clipboard
The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving)
Link copied to clipboard
Determines the redirects and rewrites of requests for HTML content. Available values: "auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none".
Link copied to clipboard
Determines the response when a request does not match a static asset, and there is no Worker script. Available values: "none", "404-page", "single-page-application".
Link copied to clipboard
When true, requests will always invoke the Worker script. Otherwise, attempt to serve an asset matching the request, falling back to the Worker script.
Link copied to clipboard
When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.