r2 custom domain support for aws-s3 sdk

Need help with generating presigned urls for uploads and it needs to use a custom domain.

Tried doing the following, but it doesn't help.

ex -

export const s3Client = new S3Client({
region: "auto",
endpoint: "https://files.fileloom.com",
forcePathStyle: true,
credentials: {
accessKeyId: "xxx",
secretAccessKey:
"xxx",
},
requestHandler: new NodeHttpHandler({
httpsAgent: new https.Agent({
keepAlive: true,
maxSockets: 1000,
}),

// time limit (ms) for receiving response.
requestTimeout: 30000,

// time limit (ms) for establishing connection.
connectionTimeout: 10000,
}),
});
Was this page helpful?