diff --git a/src/main/kotlin/no/nav/paw/config/Config.kt b/src/main/kotlin/no/nav/paw/config/Config.kt index 4b166f6..32a75a4 100644 --- a/src/main/kotlin/no/nav/paw/config/Config.kt +++ b/src/main/kotlin/no/nav/paw/config/Config.kt @@ -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 = listOf(