Skip to main content
This release is 2 versions behind 0.24.0 — the latest version of @http/host-deno-deploy. Jump to latest

Built and signed on GitHub Actions

Hosting on Deno Deploy, for production/staging deployments.

This package works with Deno
This package works with Deno
JSR Score
94%
Published
4 months ago (0.21.0)
function initDeploy
initDeploy(
handler: () => Awaitable<Response | null>,
...interceptors: Interceptors<unknown[], Response>[],
): Deno.ServeInit & (Deno.ServeOptions | Deno.ServeTlsOptions)

Convenience function to generate Deno.serve init parameter for Deno Deploy.

Parameters

handler: () => Awaitable<Response | null>
...interceptors: Interceptors<unknown[], Response>[]

Return Type

Add Package

deno add jsr:@http/host-deno-deploy

Import symbol

import initDeploy from "@http/host-deno-deploy/init";

---- OR ----

Import directly with a jsr specifier

import initDeploy from "jsr:@http/host-deno-deploy/init";