@sitecore-jss/sitecore-jss-nextjs 22.2.0-canary.16 → 22.2.0-canary.18
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.
|
@@ -212,7 +212,6 @@ class MetadataHandler {
|
|
|
212
212
|
html: `<html><body>Missing required query parameters: ${missingQueryParams.join(', ')}</body></html>`,
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
res.clearPreviewData();
|
|
216
215
|
res.setPreviewData({
|
|
217
216
|
site: query.sc_site,
|
|
218
217
|
itemId: query.sc_itemid,
|
|
@@ -225,7 +224,6 @@ class MetadataHandler {
|
|
|
225
224
|
},
|
|
226
225
|
// Cache the preview data for 3 seconds to ensure the page is rendered with the correct preview data not the cached one
|
|
227
226
|
{
|
|
228
|
-
path: query.route,
|
|
229
227
|
maxAge: 3,
|
|
230
228
|
});
|
|
231
229
|
// Cookies with the SameSite=Lax policy set by Next.js setPreviewData function causes CORS issue
|
|
@@ -207,7 +207,6 @@ export class MetadataHandler {
|
|
|
207
207
|
html: `<html><body>Missing required query parameters: ${missingQueryParams.join(', ')}</body></html>`,
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
res.clearPreviewData();
|
|
211
210
|
res.setPreviewData({
|
|
212
211
|
site: query.sc_site,
|
|
213
212
|
itemId: query.sc_itemid,
|
|
@@ -220,7 +219,6 @@ export class MetadataHandler {
|
|
|
220
219
|
},
|
|
221
220
|
// Cache the preview data for 3 seconds to ensure the page is rendered with the correct preview data not the cached one
|
|
222
221
|
{
|
|
223
|
-
path: query.route,
|
|
224
222
|
maxAge: 3,
|
|
225
223
|
});
|
|
226
224
|
// Cookies with the SameSite=Lax policy set by Next.js setPreviewData function causes CORS issue
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-nextjs",
|
|
3
|
-
"version": "22.2.0-canary.
|
|
3
|
+
"version": "22.2.0-canary.18",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"react-dom": "^18.2.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@sitecore-jss/sitecore-jss": "^22.2.0-canary.
|
|
76
|
-
"@sitecore-jss/sitecore-jss-dev-tools": "^22.2.0-canary.
|
|
77
|
-
"@sitecore-jss/sitecore-jss-react": "^22.2.0-canary.
|
|
75
|
+
"@sitecore-jss/sitecore-jss": "^22.2.0-canary.18",
|
|
76
|
+
"@sitecore-jss/sitecore-jss-dev-tools": "^22.2.0-canary.18",
|
|
77
|
+
"@sitecore-jss/sitecore-jss-react": "^22.2.0-canary.18",
|
|
78
78
|
"@vercel/kv": "^0.2.1",
|
|
79
79
|
"prop-types": "^15.8.1",
|
|
80
80
|
"regex-parser": "^2.2.11",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"description": "",
|
|
84
84
|
"types": "types/index.d.ts",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "757f81ef24c9cec4bc09813de19a9d54b5b3cf4c",
|
|
86
86
|
"files": [
|
|
87
87
|
"dist",
|
|
88
88
|
"types",
|