Skip to content

Commit

Permalink
fix: support explicitly disabling dev services for cognito user pools (
Browse files Browse the repository at this point in the history
  • Loading branch information
emattheis authored Aug 11, 2023
1 parent 4ac8b51 commit c31de63
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ DevServicesResultBuildItem setupCognitoUserPools(
return devServices.toBuildItem();
}

// explicitly disabled
if (!clientBuildTimeConfig.devservices().enabled().orElse(true)) {
log.debugf(
"Not starting Dev Services for Amazon Services - cognito user pools, as it has been disabled in the config.");
return null;
}

if (ConfigUtils.isPropertyPresent("quarkus.cognito-user-pools.endpoint-override")) {
log.debugf(
"Not starting Dev Services for Amazon Services - cognito user pools, the quarkus.cognito-user-pools.endpoint-override is configured.");
Expand Down

0 comments on commit c31de63

Please sign in to comment.