File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff 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 ) ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments