Skip to content

Commit 3bda977

Browse files
authored
fix: update handler to use correct environment variable format (#7771)
1 parent 4f094c6 commit 3bda977

File tree

1 file changed

+1
-1
lines changed
  • src/pages/[platform]/build-a-backend/functions/grant-access-to-other-resources

1 file changed

+1
-1
lines changed

src/pages/[platform]/build-a-backend/functions/grant-access-to-other-resources/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const s3Client = new S3Client();
7272

7373
export const handler = async () => {
7474
const command = new PutObjectCommand({
75-
Bucket: env.myReports_BUCKET_NAME,
75+
Bucket: env.MY_REPORTS_BUCKET_NAME,
7676
Key: `reports/${new Date().toISOString()}.csv`,
7777
Body: new Blob([''], { type: 'text/csv;charset=utf-8;' })
7878
});

0 commit comments

Comments
 (0)