create-nextblock 0.8.6 → 0.8.7

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.
@@ -1939,7 +1939,12 @@ function buildNextConfigContent(editorUtilNames) {
1939
1939
  // "Cannot find module 'critters'" at dev/build time.
1940
1940
  " cssChunking: 'strict',",
1941
1941
  ' },',
1942
- " transpilePackages: ['@nextblock-cms/utils', '@nextblock-cms/ui', '@nextblock-cms/editor'],",
1942
+ // Transpile ALL @nextblock-cms packages so Next applies React Server Component layer
1943
+ // semantics to them (the react-server condition for 'server-only', 'use client'/'use
1944
+ // server' directives). Without db/sdk/ecommerce here, db/server's `import 'server-only'`
1945
+ // throws even from a Server Component, because Next treats the prebuilt package as an
1946
+ // external and skips the server-layer processing the monorepo gets for free from source.
1947
+ " transpilePackages: ['@nextblock-cms/utils', '@nextblock-cms/ui', '@nextblock-cms/editor', '@nextblock-cms/db', '@nextblock-cms/sdk', '@nextblock-cms/ecommerce'],",
1943
1948
  ' webpack: (config, { isServer }) => {',
1944
1949
  ' config.resolve = config.resolve || {};',
1945
1950
  ' config.resolve.alias = {',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextblock",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextblock-cms/template",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",