diff --git a/packages/cdk/lib/generative-ai-use-cases-stack.ts b/packages/cdk/lib/generative-ai-use-cases-stack.ts index f40f75c9..b6cbb707 100644 --- a/packages/cdk/lib/generative-ai-use-cases-stack.ts +++ b/packages/cdk/lib/generative-ai-use-cases-stack.ts @@ -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,