Environment variables
Setup environment variables on your project.
# Execute the built-in Deno task
deno task create:env -t development,test,production --randomString=123457890 --dbConnectionString="mongodb://localhost:27017/epic-api"Working with the environment
How to get the current env type?
import { Env } from "@Core/common/mod.ts";
console.log(Env.getType()); // Logs: development | production | testHow to check for a specific env type?
How to access environment variables?
Some other utility methods
Handling missing environment variables
Last updated