Skip to content

Commit

Permalink
add env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mathysth committed Mar 17, 2024
1 parent 8d9165e commit 58984ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sample/hono-hello-world/src/start/env.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Env } from "@cosmosjs/core";
import { ENV_STATE_ENUM, Env } from "@cosmosjs/core";

/**
* This file is used to validate environment variables
Expand All @@ -11,5 +11,6 @@ import { Env } from "@cosmosjs/core";
* @link https://zod.dev/
*/
export default {
PORT: Env.validator.string().transform(Number)
PORT: Env.validator.string().transform(Number),
ENV: Env.validator.nativeEnum(ENV_STATE_ENUM)
}

0 comments on commit 58984ff

Please sign in to comment.