Skip to content

Commit 0e82bc0

Browse files
committed
optional object store region
1 parent 7a14cb5 commit 0e82bc0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/webapp/app/env.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ const EnvironmentSchema = z.object({
281281
OBJECT_STORE_BASE_URL: z.string().optional(),
282282
OBJECT_STORE_ACCESS_KEY_ID: z.string().optional(),
283283
OBJECT_STORE_SECRET_ACCESS_KEY: z.string().optional(),
284+
OBJECT_STORE_REGION: z.string().optional(),
284285
OBJECT_STORE_SERVICE: z.string().default("s3"),
285286
EVENTS_BATCH_SIZE: z.coerce.number().int().default(100),
286287
EVENTS_BATCH_INTERVAL: z.coerce.number().int().default(1000),

apps/webapp/app/v3/r2.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function initializeR2() {
1616
return new AwsClient({
1717
accessKeyId: env.OBJECT_STORE_ACCESS_KEY_ID,
1818
secretAccessKey: env.OBJECT_STORE_SECRET_ACCESS_KEY,
19+
region: env.OBJECT_STORE_REGION,
1920
// We now set the default value to "s3" in the schema to enhance interoperability with various S3-compatible services.
2021
// Setting this env var to an empty string will restore the previous behavior of not setting a service.
2122
service: env.OBJECT_STORE_SERVICE ? env.OBJECT_STORE_SERVICE : undefined,

0 commit comments

Comments
 (0)