@cmssy/next 11.2.0 → 11.3.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/dist/server.cjs +3 -9
- package/dist/server.js +3 -9
- package/package.json +4 -4
package/dist/server.cjs
CHANGED
|
@@ -62,17 +62,11 @@ function buildCmssyPageRenderer(config, blocks, options, editRoute) {
|
|
|
62
62
|
}
|
|
63
63
|
const editMode = isEnabled || editorActive;
|
|
64
64
|
const devAllowed = internal.isDevelopment() && Boolean(config.devToken?.trim());
|
|
65
|
-
let locale;
|
|
66
|
-
let pagePath = path;
|
|
67
65
|
const siteLocales = await internal.resolveSiteLocales(clientConfig);
|
|
68
66
|
const { defaultLocale, locales: enabledLocales } = siteLocales;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const split = internal.splitLocaleFromPath(path, siteLocales);
|
|
73
|
-
locale = split.locale;
|
|
74
|
-
pagePath = split.path;
|
|
75
|
-
}
|
|
67
|
+
const split = internal.splitLocaleFromPath(path, siteLocales);
|
|
68
|
+
const pagePath = split.path;
|
|
69
|
+
const locale = config.resolveLocale ? await config.resolveLocale() : split.locale;
|
|
76
70
|
const devWorkspaceId = devAllowed ? await client.resolveWorkspaceId() : void 0;
|
|
77
71
|
const page = await internal.fetchPage(clientConfig, pagePath, {
|
|
78
72
|
previewSecret: editMode ? config.draftSecret : void 0,
|
package/dist/server.js
CHANGED
|
@@ -60,17 +60,11 @@ function buildCmssyPageRenderer(config, blocks, options, editRoute) {
|
|
|
60
60
|
}
|
|
61
61
|
const editMode = isEnabled || editorActive;
|
|
62
62
|
const devAllowed = isDevelopment() && Boolean(config.devToken?.trim());
|
|
63
|
-
let locale;
|
|
64
|
-
let pagePath = path;
|
|
65
63
|
const siteLocales = await resolveSiteLocales(clientConfig);
|
|
66
64
|
const { defaultLocale, locales: enabledLocales } = siteLocales;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const split = splitLocaleFromPath(path, siteLocales);
|
|
71
|
-
locale = split.locale;
|
|
72
|
-
pagePath = split.path;
|
|
73
|
-
}
|
|
65
|
+
const split = splitLocaleFromPath(path, siteLocales);
|
|
66
|
+
const pagePath = split.path;
|
|
67
|
+
const locale = config.resolveLocale ? await config.resolveLocale() : split.locale;
|
|
74
68
|
const devWorkspaceId = devAllowed ? await client.resolveWorkspaceId() : void 0;
|
|
75
69
|
const page = await fetchPage(clientConfig, pagePath, {
|
|
76
70
|
previewSecret: editMode ? config.draftSecret : void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/next",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.1",
|
|
4
4
|
"description": "Next.js App Router bindings for cmssy headless sites (createCmssyPage + draft preview)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dist"
|
|
52
52
|
],
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@cmssy/react": "^11.
|
|
54
|
+
"@cmssy/react": "^11.3.0",
|
|
55
55
|
"next": ">=15",
|
|
56
56
|
"react": "^18.2.0 || ^19.0.0",
|
|
57
57
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"tsup": "^8.3.0",
|
|
66
66
|
"typescript": "^5.6.0",
|
|
67
67
|
"vitest": "^2.1.0",
|
|
68
|
-
"@cmssy/react": "11.
|
|
68
|
+
"@cmssy/react": "11.3.1"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@cmssy/types": "0.32.0",
|
|
72
72
|
"server-only": "^0.0.1",
|
|
73
|
-
"@cmssy/core": "11.
|
|
73
|
+
"@cmssy/core": "11.3.1"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "tsup",
|