@bigcommerce/stencil-cli 5.2.4 → 5.2.5
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
### Draft
|
|
2
2
|
|
|
3
|
+
### 5.2.5 (2022-10-18)
|
|
4
|
+
|
|
5
|
+
- fix: STRF-10130 fix 404s on pagination in brands/categories ([1004](https://github.com/bigcommerce/stencil-cli/pull/1004))
|
|
6
|
+
|
|
3
7
|
### 5.2.4 (2022-10-10)
|
|
4
8
|
|
|
5
9
|
- fix: STRF-10118 fix redirects stalling locally ([1000](https://github.com/bigcommerce/stencil-cli/pull/1000))
|
package/package.json
CHANGED
|
@@ -71,14 +71,18 @@ internals.sha1sum = (input) => {
|
|
|
71
71
|
*/
|
|
72
72
|
internals.getResponse = async (request) => {
|
|
73
73
|
const storeUrlObj = new URL(request.app.storeUrl);
|
|
74
|
+
const fullUrl = Object.assign(new URL(request.url.toString()), {
|
|
75
|
+
port: storeUrlObj.port,
|
|
76
|
+
host: storeUrlObj.host,
|
|
77
|
+
protocol: storeUrlObj.protocol,
|
|
78
|
+
});
|
|
79
|
+
const withoutPageQuery = new URL(fullUrl.toString());
|
|
80
|
+
withoutPageQuery.searchParams.delete('page');
|
|
81
|
+
|
|
74
82
|
const { customLayouts } = internals.options;
|
|
75
83
|
|
|
76
84
|
const httpOpts = {
|
|
77
|
-
url:
|
|
78
|
-
port: storeUrlObj.port,
|
|
79
|
-
host: storeUrlObj.host,
|
|
80
|
-
protocol: storeUrlObj.protocol,
|
|
81
|
-
}).toString(),
|
|
85
|
+
url: withoutPageQuery.toString(),
|
|
82
86
|
headers: internals.buildReqHeaders({
|
|
83
87
|
request,
|
|
84
88
|
stencilOptions: { get_template_file: true, get_data_only: true },
|
|
@@ -95,7 +99,7 @@ internals.getResponse = async (request) => {
|
|
|
95
99
|
};
|
|
96
100
|
|
|
97
101
|
const responseArgs = {
|
|
98
|
-
httpOpts,
|
|
102
|
+
httpOpts: { ...httpOpts, url: fullUrl.toString() },
|
|
99
103
|
storeUrlObj,
|
|
100
104
|
};
|
|
101
105
|
|