Workers Script Assets Config Args
data class WorkersScriptAssetsConfigArgs(val htmlHandling: Output<String>? = null, val notFoundHandling: Output<String>? = null, val runWorkerFirst: Output<Boolean>? = null, val serveDirectly: Output<Boolean>? = null) : ConvertibleToJava<WorkersScriptAssetsConfigArgs>
Properties
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.