File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 1
1
const { cos} = require ( 'tencent-cloud-sdk' )
2
- const cdn = require ( '../cdn/index' )
3
2
const util = require ( 'util' )
4
3
const path = require ( 'path' )
5
4
const fs = require ( 'fs' )
@@ -424,22 +423,7 @@ class CosUtils {
424
423
}
425
424
await this . upload ( uploadDict )
426
425
427
- // add user domain
428
- if ( inputs . hosts && inputs . hosts . length > 0 ) {
429
- const cosOriginAdd = `${ inputs . bucket } .cos-website.${ this . region } .myqcloud.com`
430
- for ( let i = 0 ; i < inputs . hosts . length ; i ++ ) {
431
- const cdnInputs = inputs . hosts [ i ]
432
- cdnInputs . hostType = 'cos'
433
- cdnInputs . serviceType = 'web'
434
- cdnInputs . fwdHost = cosOriginAdd
435
- cdnInputs . origin = cosOriginAdd
436
- }
437
- const cdn = new Cdn ( this . credentials , this . region )
438
- const outputs = await cdn . deploy ( inputs )
439
- inputs . cndOutput = outputs
440
- }
441
-
442
- return inputs
426
+ return `${ inputs . bucket } .cos-website.${ this . region } .myqcloud.com`
443
427
}
444
428
445
429
async deploy ( inputs = { } ) {
You can’t perform that action at this time.
0 commit comments