@bigcommerce/stencil-cli 8.9.0 → 8.9.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/lib/stencil-start.js +3 -1
- package/package.json +1 -1
- package/server/index.js +1 -1
package/lib/stencil-start.js
CHANGED
|
@@ -65,6 +65,7 @@ class StencilStart {
|
|
|
65
65
|
const updatedStencilConfig = this.updateStencilConfig(
|
|
66
66
|
initialStencilConfig,
|
|
67
67
|
storeInfoFromAPI,
|
|
68
|
+
browserSyncPort,
|
|
68
69
|
);
|
|
69
70
|
this._storeSettingsLocale = await this.getStoreSettingsLocale(
|
|
70
71
|
cliOptions,
|
|
@@ -126,11 +127,12 @@ class StencilStart {
|
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
|
|
129
|
-
updateStencilConfig(stencilConfig, storeInfoFromAPI) {
|
|
130
|
+
updateStencilConfig(stencilConfig, storeInfoFromAPI, browserSyncPort) {
|
|
130
131
|
return {
|
|
131
132
|
...stencilConfig,
|
|
132
133
|
storeUrl: storeInfoFromAPI.sslUrl,
|
|
133
134
|
normalStoreUrl: storeInfoFromAPI.baseUrl,
|
|
135
|
+
port: browserSyncPort,
|
|
134
136
|
};
|
|
135
137
|
}
|
|
136
138
|
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -14,7 +14,7 @@ function buildManifest(srcManifest, options) {
|
|
|
14
14
|
const parsedSecureUrl = new URL(options.dotStencilFile.storeUrl); // The url to a secure page (prompted as login page)
|
|
15
15
|
const parsedNormalUrl = new URL(options.dotStencilFile.normalStoreUrl); // The host url of the homepage;
|
|
16
16
|
const storeUrl = parsedSecureUrl.protocol + '//' + parsedSecureUrl.host;
|
|
17
|
-
resManifest.server.port = options.dotStencilFile.port;
|
|
17
|
+
resManifest.server.port = parseInt(options.dotStencilFile.port, 10) + 1;
|
|
18
18
|
pluginsByName['./plugins/router/router.module.js'].storeUrl = storeUrl;
|
|
19
19
|
pluginsByName['./plugins/router/router.module.js'].normalStoreUrl =
|
|
20
20
|
parsedNormalUrl.protocol + '//' + parsedNormalUrl.host;
|