Skip to main content
This release is 8 versions behind 0.25.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
7 months ago (0.16.0)

Helpers for hosting on Deno Deploy

Handy helper functions for initializing a server in Deno Deploy.

import init from "@http/host-deno-deploy/init";
import handler from "./handler.ts";

await Deno.serve(init(handler)).finished;

It's a pretty simple function that provides some out of the box conveniences:

  • Add logging.
  • Register interceptors passed as the remaining parameters after the handler.
  • Provides a fallback response (404 Not Found), if the handler 'skips' (ie. returns null), as is the convention in @http routing functions (eg. cascade).
Built and signed on
GitHub Actions
View transparency log