@decocms/nextjs 7.64.3 → 7.65.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/nextjs",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.65.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"lint:unused": "knip"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@decocms/blocks": "7.
|
|
33
|
-
"@decocms/blocks-admin": "7.
|
|
32
|
+
"@decocms/blocks": "7.65.0",
|
|
33
|
+
"@decocms/blocks-admin": "7.65.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"next": ">=15.0.0",
|
package/src/createDecoPage.tsx
CHANGED
|
@@ -57,7 +57,7 @@ function buildSeo(page: DecoPageResult): PageSeo {
|
|
|
57
57
|
*
|
|
58
58
|
* `resolveForPath` is wrapped in React's `cache()` so `generateMetadata` and
|
|
59
59
|
* the page body share one `resolveDecoPage` call per request instead of
|
|
60
|
-
* resolving twice — the same pattern
|
|
60
|
+
* resolving twice — the same pattern a production Next.js site's own
|
|
61
61
|
* `resolveCmsPageByPath` already used against the old /next tier. This relies
|
|
62
62
|
* on Next's RSC renderer establishing a per-request cache boundary that
|
|
63
63
|
* `cache()` memoizes against: calling the returned functions directly outside
|
|
@@ -47,8 +47,8 @@ describe("prepareDraft", () => {
|
|
|
47
47
|
|
|
48
48
|
it("is inert on a host outside the allowlist — the production domain", () => {
|
|
49
49
|
// Same build, different Host: no cookie, no rewrite, nothing touched.
|
|
50
|
-
const req = request("https://
|
|
51
|
-
process.env.DECO_ALLOWED_PREVIEW_HOSTS = "
|
|
50
|
+
const req = request("https://acme.com.br/p?__draft=abc@v1");
|
|
51
|
+
process.env.DECO_ALLOWED_PREVIEW_HOSTS = "acme.vtex.app";
|
|
52
52
|
expect(prepareDraft(req)).toEqual({ pointer: null, setCookie: null, clearCookie: false });
|
|
53
53
|
expect(rewriteToDraftRoute(req, prepareDraft(req))).toBeNull();
|
|
54
54
|
});
|