Skip to content

Commit

Permalink
use enum value for INNGEST_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Feb 26, 2024
1 parent 626bb27 commit ca24bbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inngest-core/src/main/kotlin/com/inngest/Environment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ object Environment {
}

// Read from environment variable
val inngestEnv = System.getenv("INNGEST_ENV")
return when (inngestEnv) {
return when (System.getenv(InngestSystem.Env.value)) {
null -> InngestEnv.Dev
"dev" -> InngestEnv.Dev
"development" -> InngestEnv.Dev
Expand Down

0 comments on commit ca24bbb

Please sign in to comment.