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 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Aug 16, 2023
1 parent a3e4dc7 commit 2676201
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 2676201

Please sign in to comment.