Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Aug 16, 2023
1 parent 5a0f45c commit 10cbf19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export class Context<
}

env<T extends keyof Variables>(name: T): Variables[T] {
return this.runtime === 'cloudflare'
? (this.#a.env as Variables)[name]
: Deno.env.get(name)
return this.runtime === 'deno'
? Deno.env.get(name)
: (this.#a.env as Variables)[name]
}

get req(): RequestContext<
Expand Down

0 comments on commit 10cbf19

Please sign in to comment.