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

Commit

Permalink
sett environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jstnhlj committed Dec 4, 2023
1 parent e590b52 commit 20f71a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/kotlin/no/nav/paw/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ data class Config(
.instanceId(dotenv["NAIS_APP_NAME"])
.unleashAPI(dotenv["UNLEASH_SERVER_API_URL"])
.apiKey(dotenv["UNLEASH_SERVER_API_TOKEN"])
.environment(
when (System.getenv("NAIS_CLUSTER_NAME").orEmpty()) {
"prod-gcp" -> "production"
else -> "development"
}
)
.synchronousFetchOnInitialisation(true)
.build(),
val authentication: List<AuthProvider> = listOf(
Expand Down

0 comments on commit 20f71a5

Please sign in to comment.