Template
1
0
Files
boilerplate/platform/config/dotenv.ts

11 lines
183 B
TypeScript

import { load } from "@std/dotenv";
const env = await load();
/**
* TODO ...
*/
export function getDotEnvVariable(key: string): string {
return env[key] ?? Deno.env.get(key);
}