@bigcommerce/stencil-cli 8.5.2 → 8.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/stencil-start.js +6 -1
- package/lib/stencil-bundle.js +1 -0
- package/lib/stencil-start.js +3 -0
- package/package.json +1 -1
package/bin/stencil-start.js
CHANGED
|
@@ -19,7 +19,11 @@ program
|
|
|
19
19
|
'-n, --no-cache',
|
|
20
20
|
'Turns off caching for API resource data per storefront page. The cache lasts for 5 minutes before automatically refreshing.',
|
|
21
21
|
)
|
|
22
|
-
.option('-t, --timeout', 'Set a timeout for the bundle operation. Default is 20 secs', '60')
|
|
22
|
+
.option('-t, --timeout', 'Set a timeout for the bundle operation. Default is 20 secs', '60')
|
|
23
|
+
.option(
|
|
24
|
+
'-cu, --channelUrl [channelUrl]',
|
|
25
|
+
'Set a custom domain url to bypass dns/proxy protection',
|
|
26
|
+
);
|
|
23
27
|
const cliOptions = prepareCommand(program);
|
|
24
28
|
const options = {
|
|
25
29
|
open: cliOptions.open,
|
|
@@ -28,6 +32,7 @@ const options = {
|
|
|
28
32
|
apiHost: cliOptions.host,
|
|
29
33
|
tunnel: cliOptions.tunnel,
|
|
30
34
|
cache: cliOptions.cache,
|
|
35
|
+
channelUrl: cliOptions.channelUrl,
|
|
31
36
|
};
|
|
32
37
|
const timeout = cliOptions.timeout * 1000; // seconds
|
|
33
38
|
const buildConfigManager = new BuildConfigManager({ timeout });
|
package/lib/stencil-bundle.js
CHANGED
package/lib/stencil-start.js
CHANGED
|
@@ -91,6 +91,9 @@ class StencilStart {
|
|
|
91
91
|
this.storeHash = await this._themeApiClient.getStoreHash({
|
|
92
92
|
storeUrl: stencilConfig.normalStoreUrl,
|
|
93
93
|
});
|
|
94
|
+
if (cliOptions.channelUrl) {
|
|
95
|
+
return cliOptions.channelUrl;
|
|
96
|
+
}
|
|
94
97
|
const channels = await this._themeApiClient.getStoreChannels({
|
|
95
98
|
storeHash: this.storeHash,
|
|
96
99
|
accessToken,
|