@lark-apaas/fullstack-cli 1.1.66-alpha.20260902183957 → 1.1.66-alpha.20260902192310
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
|
@@ -72,14 +72,16 @@ const publicPort = Number(process.env.SERVER_PORT || 3000);
|
|
|
72
72
|
const logDir = path.resolve(projectRoot, process.env.LOG_DIR || 'logs');
|
|
73
73
|
const readinessPath =
|
|
74
74
|
process.env.MIAODA_NEST_READINESS_PATH || '/__innerapi__/capability/list';
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
function resolveSourceReadinessPath(baseEnv) {
|
|
76
|
+
const clientBasePath =
|
|
77
|
+
baseEnv.CLIENT_BASE_PATH?.startsWith('/') &&
|
|
78
|
+
!baseEnv.CLIENT_BASE_PATH.startsWith('//')
|
|
79
|
+
? baseEnv.CLIENT_BASE_PATH.replace(/\/+$/, '')
|
|
80
|
+
: '';
|
|
81
|
+
return clientBasePath
|
|
82
|
+
? `${clientBasePath}/__innerapi__/capability/list`
|
|
83
|
+
: readinessPath;
|
|
84
|
+
}
|
|
83
85
|
const sourceReadyTimeoutMs = positiveDuration(
|
|
84
86
|
'MIAODA_NEST_SOURCE_READY_TIMEOUT_MS',
|
|
85
87
|
60_000
|
|
@@ -1667,7 +1669,7 @@ async function startAndPromoteSource(baseEnv, expectedCapabilityIds) {
|
|
|
1667
1669
|
candidate,
|
|
1668
1670
|
sourceReadyTimeoutMs,
|
|
1669
1671
|
expectedCapabilityIds,
|
|
1670
|
-
|
|
1672
|
+
resolveSourceReadinessPath(baseEnv)
|
|
1671
1673
|
);
|
|
1672
1674
|
} catch (error) {
|
|
1673
1675
|
try {
|