Skip to content

Commit dd7a95a

Browse files
committed
rename s3 upload concurrency env
1 parent ea08e2b commit dd7a95a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/services/server/.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ S3_ENDPOINT=http://localhost:9000
4848
S3_ACCESS_KEY_ID="minioadmin"
4949
S3_SECRET_ACCESS_KEY="minioadmin"
5050
S3_BUCKET_NAME="artifacts"
51+
APP_DEPLOYMENT_S3_UPLOAD_CONCURRENCY=""
5152

5253
ARTIFACT_AUTH_PRIVATE_KEY=1e1064ef9cda8bf38936b77317e90dc3
5354

packages/services/server/src/environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ const S3Model = zod.object({
177177
S3_SECRET_ACCESS_KEY: zod.string(),
178178
S3_SESSION_TOKEN: emptyString(zod.string().optional()),
179179
S3_BUCKET_NAME: zod.string(),
180-
S3_UPLOAD_CONCURRENCY: emptyString(NumberFromString.optional()),
180+
APP_DEPLOYMENT_S3_UPLOAD_CONCURRENCY: emptyString(NumberFromString.optional()),
181181
});
182182

183183
const S3MirrorModel = zod.union([
@@ -499,7 +499,7 @@ export const env = {
499499
secretAccessKey: s3.S3_SECRET_ACCESS_KEY,
500500
sessionToken: s3.S3_SESSION_TOKEN,
501501
},
502-
uploadConcurrency: s3.S3_UPLOAD_CONCURRENCY ?? 100,
502+
uploadConcurrency: s3.APP_DEPLOYMENT_S3_UPLOAD_CONCURRENCY ?? 100,
503503
},
504504
s3Mirror:
505505
s3Mirror.S3_MIRROR === '1'

0 commit comments

Comments
 (0)