Skip to content

Commit

Permalink
fix: optional string
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Goldman committed Oct 30, 2023
1 parent c5a91e1 commit 2782a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export async function initComponents(): Promise<AppComponents> {
const awsConfig: AwsConfig = {
region: await config.requireString('AWS_REGION'),
credentials: {
accessKeyId: await config.requireString('AWS_ACCESS_KEY_ID'),
secretAccessKey: await config.requireString('AWS_SECRET_ACCESS_KEY')
accessKeyId: (await config.getString('AWS_ACCESS_KEY_ID')) || '',
secretAccessKey: (await config.getString('AWS_SECRET_ACCESS_KEY')) || ''
}
}
const awsEndpoint = await config.getString('AWS_ENDPOINT')
Expand Down

0 comments on commit 2782a7b

Please sign in to comment.