method ICloudflareBindings.vars
ICloudflareBindings.vars(): Readonly<Record<string, string>>

The Worker's string variables and secrets.

The same values reach runtime.env when the application passes env to RuntimePlugin; this accessor exists so a consumer holding only the bindings service does not need the runtime as well.

Return Type

Readonly<Record<string, string>>

The string entries of the Worker's env

Usage

import { type ICloudflareBindings } from "cloudflare-plugin/src/index.ts";