Skip to content

Commit 72f693c

Browse files
authored
Merge pull request #510 from Kpoke/fix/s3_url
fix/s3 url
2 parents ed6669c + c642005 commit 72f693c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/services/S3Service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const upload = async (file, key, mimetype) => {
1414
const command = new PutObjectCommand(params);
1515
await s3.send(command);
1616

17-
return `https://${bucket}.s3-${region}.amazonaws.com/${encodeURIComponent(key)}`;
17+
return `https://${bucket}.s3.${region}.amazonaws.com/${encodeURIComponent(key)}`;
1818
};
1919

2020
module.exports = {

0 commit comments

Comments
 (0)