Skip to main content
Module

x/dectyl/types.d.ts>DeployOptions

Prototype library for testing Deno Deploy scripts using the Deno CLI
Go to Latest
interface DeployOptions
import { type DeployOptions } from "https://deno.land/x/dectyl@0.6.2/types.d.ts";

Properties

optional
host: string

The host to use when sending requests into the worker. Defaults to localhost.

optional
fetchHandler: (evt: RequestEvent) => Promise<void> | void

An optional handler for fetch requests coming from the deploy script. This is design to allow outbound fetch requests from the Deploy script to be intercepted. If the respondWith() is not called in the handler, then the request will simply be passed through to the native fetch().

optional
name: string

The name of the deploy worker. If undefined a unique name will be generated.

optional
watch: boolean

If the deploy specifier is a local specifier, watch it, and its dependencies for changes and reload the worker when changed.