Skip to content

Commit

Permalink
Merge pull request #150 from toshikwa/fix/disable-self-signup
Browse files Browse the repository at this point in the history
Fixed bug in disable self-signup feature
  • Loading branch information
kazuhitogo authored Nov 2, 2023
2 parents 400cc07 + 6fe470f commit bfc74dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cdk/lib/generative-ai-use-cases-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export class GenerativeAiUseCasesStack extends Stack {

process.env.overrideWarningsEnabled = 'false';

const ragEnabled: boolean = this.node.tryGetContext('ragEnabled') || false;
const ragEnabled: boolean = this.node.tryGetContext('ragEnabled')!;
const selfSignUpEnabled: boolean =
this.node.tryGetContext('selfSignUpEnabled') || true;
this.node.tryGetContext('selfSignUpEnabled')!;

const auth = new Auth(this, 'Auth', {
selfSignUpEnabled,
Expand Down

0 comments on commit bfc74dc

Please sign in to comment.