Skip to content

Commit e128736

Browse files
yugasunYuga Sun
authored andcommitted
fix(cdn): only refresh output
1 parent 9adcdae commit e128736

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/modules/cdn/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ class Cdn {
113113
await this.purgeCdnUrls(RefreshCdn.Urls, RefreshCdn.FlushType);
114114
}
115115
return {
116+
resourceId: domainExist.ResourceId,
117+
https: !!Https,
116118
domain: Domain,
117119
origins: domainExist.Origin.Origins,
120+
cname: `${Domain}.cdn.dnsv1.com`,
118121
refreshUrls: RefreshCdn.Urls,
119122
};
120123
}
@@ -149,15 +152,14 @@ class Cdn {
149152
});
150153

151154
const outputs = {
152-
https: false,
155+
https: !!Https,
153156
domain: Domain,
154157
origins: cdnInputs.Origin.Origins,
155158
cname: `${Domain}.cdn.dnsv1.com`,
156159
inputCache: JSON.stringify(inputs),
157160
};
158161

159162
if (Https) {
160-
outputs.https = true;
161163
cdnInputs.Https = {
162164
Switch: Https.Switch || 'on',
163165
Http2: Https.Http2 || 'off',

0 commit comments

Comments
 (0)