Skip to content

Commit 46fecbf

Browse files
authored
fix: lost schema of S3 URL (#1893)
2 parents 2989453 + 9060402 commit 46fecbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/imageRouter/s3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ exports.uploadImage = function (imagePath, callback) {
5151
// default scheme settings to https
5252
let s3Endpoint = 'https://s3.amazonaws.com'
5353
if (config.s3.region && config.s3.region !== 'us-east-1') {
54-
s3Endpoint = `s3-${config.s3.region}.amazonaws.com`
54+
s3Endpoint = `https://s3-${config.s3.region}.amazonaws.com`
5555
}
5656
// rewrite endpoint from config
5757
if (config.s3.endpoint) {

0 commit comments

Comments
 (0)