[]previous and next page

runtimeEnvironment

The environment of a runtime that has no process.env of its own (Deno-based edge runtimes): Deno.env when it exists, else process.env, else undefined.

The environment of a runtime that has no process.env of its own (Deno-based edge runtimes): Deno.env when it exists, else process.env, else undefined. Edge entries pass it as the environment of the request; it is read here, in the bundle, so the entry needs no import.

Import#

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

Signature#

ts
function runtimeEnvironment(): Record<string, string> | undefined

Returns#

The environment as strings, or undefined.

Examples#

ts
export default createFetch(handler); // with platformHost(runtimeEnvironment(), ...) in edge code