soma-core 2.1.4 → 2.1.5
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/host-next/next.config.js +10 -0
- package/package.json +1 -1
package/host-next/next.config.js
CHANGED
|
@@ -294,6 +294,16 @@ const nextConfig = {
|
|
|
294
294
|
|
|
295
295
|
experimental: {
|
|
296
296
|
externalDir: true,
|
|
297
|
+
// Next 16.4+ 默认开启 reactDebugChannel,水合前会阻塞等待 /_next/hmr WebSocket;
|
|
298
|
+
// 通过仅代理 HTTP、不代理 WebSocket 的反代网关(如配合 SOMA_DEV_ORIGINS)访问 soma dev 时会卡死在 Loading page…,故默认关闭。
|
|
299
|
+
...(function resolveReactDebugChannel() {
|
|
300
|
+
try {
|
|
301
|
+
const sharedPath = require.resolve("next/dist/server/config-shared", { paths: [hostDir, __dirname, coreRoot] });
|
|
302
|
+
const exp = require(sharedPath)?.defaultConfig?.experimental;
|
|
303
|
+
if (exp && !("reactDebugChannel" in exp)) return {};
|
|
304
|
+
} catch {}
|
|
305
|
+
return { reactDebugChannel: false };
|
|
306
|
+
})(),
|
|
297
307
|
// 低内存构建:并行 worker 是构建期内存的主要来源,小内存机器上把它压到 1
|
|
298
308
|
...(skipBuildChecks ? { cpus: 1, workerThreads: false } : {}),
|
|
299
309
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soma-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "SOMA — Semantic Oriented Modular Architecture. A declarative frontend framework runtime with no UI framework dependency; the Next.js host shell ships in host-next/ (code-isolated from core/, next/react are optional peer dependencies).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"soma",
|