Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const envStorageDriverSchema = type.or(
'AWS_ENDPOINT_URL?': 'string.url',
'AWS_ACCESS_KEY_ID?': 'string',
'AWS_SECRET_ACCESS_KEY?': 'string',
'STORAGE_S3_SOCKET_TIMEOUT_MS': 'number = 10000',
},
{
STORAGE_DRIVER: type.unit('filesystem'),
Expand Down
2 changes: 1 addition & 1 deletion lib/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ class S3Adapter implements StorageAdapter {
region: env.AWS_REGION,
requestHandler: new NodeHttpHandler({
httpsAgent: agent,
socketTimeout: 3000,
socketTimeout: env.STORAGE_S3_SOCKET_TIMEOUT_MS,
}),
})

Expand Down
Loading