From 621c6035e913b171b92dea81795c22d36aad0b87 Mon Sep 17 00:00:00 2001 From: jhorvat7 Date: Sat, 22 Jun 2024 11:18:59 -0400 Subject: [PATCH] fix: update handler to use correct environment variable format --- .../functions/grant-access-to-other-resources/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-a-backend/functions/grant-access-to-other-resources/index.mdx b/src/pages/[platform]/build-a-backend/functions/grant-access-to-other-resources/index.mdx index 38483210702..a9f6a34e7a9 100644 --- a/src/pages/[platform]/build-a-backend/functions/grant-access-to-other-resources/index.mdx +++ b/src/pages/[platform]/build-a-backend/functions/grant-access-to-other-resources/index.mdx @@ -72,7 +72,7 @@ const s3Client = new S3Client(); export const handler = async () => { const command = new PutObjectCommand({ - Bucket: env.myReports_BUCKET_NAME, + Bucket: env.MY_REPORTS_BUCKET_NAME, Key: `reports/${new Date().toISOString()}.csv`, Body: new Blob([''], { type: 'text/csv;charset=utf-8;' }) });