Skip to content

Commit 8426428

Browse files
committed
fix: fix
1 parent bcb7991 commit 8426428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/upload-to-cos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const config = {
1313
const cos = new COS({
1414
SecretId: config.SecretId,
1515
SecretKey: config.SecretKey,
16+
Domain: "{Bucket}.cos-internal.{Region}.tencentcos.cn",
1617
});
1718

1819
async function uploadToCOS() {
@@ -47,7 +48,6 @@ async function uploadFile(sourcePath, zipName, cosKey) {
4748
Key: cosKey,
4849
Body: fs.createReadStream(zipPath),
4950
ContentType: "application/zip",
50-
Domain: "{Bucket}.cos-internal.{Region}.tencentcos.cn",
5151
},
5252
function (err, data) {
5353
// 清理临时文件

0 commit comments

Comments
 (0)