@sitecore-jss/sitecore-jss-nextjs 22.5.0-canary.1 → 22.5.0-canary.2
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.
|
@@ -49,7 +49,8 @@ class ChromesHandler extends render_middleware_1.RenderMiddlewareBase {
|
|
|
49
49
|
* @param {NextApiRequest} req
|
|
50
50
|
*/
|
|
51
51
|
this.defaultResolveServerUrl = (req) => {
|
|
52
|
-
|
|
52
|
+
// use https for requests with auth but also support unsecured http rendering hosts
|
|
53
|
+
return `${req.headers.authorization || process.env.VERCEL ? 'https' : 'http'}://${req.headers.host}`;
|
|
53
54
|
};
|
|
54
55
|
this.editingDataService = (_a = config === null || config === void 0 ? void 0 : config.editingDataService) !== null && _a !== void 0 ? _a : editing_data_service_1.editingDataService;
|
|
55
56
|
this.dataFetcher = (_b = config === null || config === void 0 ? void 0 : config.dataFetcher) !== null && _b !== void 0 ? _b : new sitecore_jss_1.NativeDataFetcher({ debugger: sitecore_jss_1.debug.editing });
|
|
@@ -46,7 +46,8 @@ export class ChromesHandler extends RenderMiddlewareBase {
|
|
|
46
46
|
* @param {NextApiRequest} req
|
|
47
47
|
*/
|
|
48
48
|
this.defaultResolveServerUrl = (req) => {
|
|
49
|
-
|
|
49
|
+
// use https for requests with auth but also support unsecured http rendering hosts
|
|
50
|
+
return `${req.headers.authorization || process.env.VERCEL ? 'https' : 'http'}://${req.headers.host}`;
|
|
50
51
|
};
|
|
51
52
|
this.editingDataService = (_a = config === null || config === void 0 ? void 0 : config.editingDataService) !== null && _a !== void 0 ? _a : editingDataService;
|
|
52
53
|
this.dataFetcher = (_b = config === null || config === void 0 ? void 0 : config.dataFetcher) !== null && _b !== void 0 ? _b : new NativeDataFetcher({ debugger: debug.editing });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-nextjs",
|
|
3
|
-
"version": "22.5.0-canary.
|
|
3
|
+
"version": "22.5.0-canary.2",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"react-dom": "^18.2.0"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@sitecore-jss/sitecore-jss": "^22.5.0-canary.
|
|
77
|
-
"@sitecore-jss/sitecore-jss-dev-tools": "^22.5.0-canary.
|
|
78
|
-
"@sitecore-jss/sitecore-jss-react": "^22.5.0-canary.
|
|
76
|
+
"@sitecore-jss/sitecore-jss": "^22.5.0-canary.2",
|
|
77
|
+
"@sitecore-jss/sitecore-jss-dev-tools": "^22.5.0-canary.2",
|
|
78
|
+
"@sitecore-jss/sitecore-jss-react": "^22.5.0-canary.2",
|
|
79
79
|
"@vercel/kv": "^0.2.1",
|
|
80
80
|
"prop-types": "^15.8.1",
|
|
81
81
|
"regex-parser": "^2.2.11",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"description": "",
|
|
85
85
|
"types": "types/index.d.ts",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "94b2dc150576ec94f08ab3941e2c10dce2516f72",
|
|
87
87
|
"files": [
|
|
88
88
|
"dist",
|
|
89
89
|
"types",
|