import { type mod } from "https://deno.land/x/ponder@v0.0.3.1/deps.ts";
const { ConfigOptions } = mod;
Properties
Set to true
to export all .env
variables to the current processes
environment. Variables are then accessable via Deno.env.get(<key>)
.
Set to true
to ensure that all necessary environment variables are
defined after reading from .env
. It will read example
to get the
list of needed variables.
If any of the defined variables is not in .env
, an error will occur. This
method is preferred because it prevents runtime errors in a production
application due to improper configuration.
Another way to supply required variables is externally, like so:
GREETING="hello world" deno run --allow-env app.ts
Set to true
to allow required env variables to be empty. Otherwise, it
will throw an error if any variable is empty.