From 71d0b419d194ddd0860a6b9d53a762f4b29c13ae Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sat, 27 Sep 2025 10:12:41 +1000 Subject: [PATCH] Add support for s3 region --- lib/blobStore/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blobStore/index.ts b/lib/blobStore/index.ts index e08812e3..59c4992c 100644 --- a/lib/blobStore/index.ts +++ b/lib/blobStore/index.ts @@ -1,4 +1,3 @@ -import type { Blob as ManageBlob } from "@/drizzle/types"; import { DeleteObjectCommand, GetObjectCommand, @@ -7,9 +6,10 @@ import { S3Client, } from "@aws-sdk/client-s3"; import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; +import type { Blob as ManageBlob } from "@/drizzle/types"; const blobStorage = new S3Client({ - region: "auto", + region: process.env.S3_REGION ?? "auto", endpoint: process.env.S3_ENDPOINT ?? "", credentials: { accessKeyId: process.env.S3_ACCESS_KEY_ID ?? "",