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

Commit

Permalink
feat: c.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Aug 16, 2023
1 parent a3e4dc7 commit a353569
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export class Context<
return this.#a
}

get dev(): boolean {
return this.runtime === 'deno' && Deno.env.get('DEV') === 'true'
}

get req(): RequestContext<
Params,
ValidatedBody,
Expand Down

0 comments on commit a353569

Please sign in to comment.