⚙️ Env Vars
Manage Environment Variables
How to Access Environment Variables
app.ts
const code = Deno.env.get('KILLCODE')
Set Environment Variables with Dotenv
.env
KILLCODE=hello
{
"tasks": {
"dev": "deno run --env app.ts"
}
}
Set Environment Variables in a Task
{
"tasks": {
"dev": "export KILLCODE=hello && deno run app.ts"
}
}