import { BadConfigErr } from "./errors.ts"; export const mustGetEnv = (envName: string): string => { const env = Deno.env.get(envName) if (!env) { throw new BadConfigErr(`required environment variable ${envName} wasn't set`) } return env }