[]previous and next page

deno

The Deno adapter: writes server.mjs, which serves the server bundle and the client folder with Deno.serve.

The Deno adapter: writes server.mjs, which serves the server bundle and the client folder with Deno.serve. Run it with deno run --allow-read --allow-env --allow-net server.mjs. It reads PORT (default 3000) and HOST (default 0.0.0.0) through process.env.

Import#

ts
import { deno } from "@shadow-js/dusk/deno";

Signature#

ts
function deno(options: DenoAdapterOptions = {}): Adapter

Parameters#

Name Description
options See DenoAdapterOptions.

Returns#

The adapter for dusk({ adapter }).

Throws#

  • TypeError for an invalid outDir.

Examples#

ts
import { deno } from "@shadow-js/dusk/deno";
export default { plugins: [dusk({ adapter: deno() })] };