@lark-apaas/fullstack-cli 1.1.59-alpha.20260719042040 → 1.1.59-alpha.20260719094042
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/index.js +11 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8852,6 +8852,7 @@ import { spawn as spawn2, spawnSync as spawnSync7 } from "child_process";
|
|
|
8852
8852
|
|
|
8853
8853
|
// src/commands/preview-artifact/readiness.ts
|
|
8854
8854
|
function isPreviewBusinessResponseReady(response) {
|
|
8855
|
+
if (response.status === 401 || response.status === 403) return true;
|
|
8855
8856
|
return response.status !== 404 && response.status < 500 && !response.headers.get("content-type")?.includes("text/html");
|
|
8856
8857
|
}
|
|
8857
8858
|
|
|
@@ -9106,11 +9107,11 @@ async function runPreviewArtifactProbe(options) {
|
|
|
9106
9107
|
coverage.clientAssets = entryReferences.localExecutable;
|
|
9107
9108
|
if (entryReferences.localExecutable.length === 0) {
|
|
9108
9109
|
reasons.push("client HTML has no local executable entry asset");
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9110
|
+
for (const externalAsset of entryReferences.unsupportedExternal) {
|
|
9111
|
+
reasons.push(
|
|
9112
|
+
`external client entry asset is unsupported: ${externalAsset}`
|
|
9113
|
+
);
|
|
9114
|
+
}
|
|
9114
9115
|
}
|
|
9115
9116
|
for (const entryAsset of entryAssets) {
|
|
9116
9117
|
if (!resolveClientEntryAsset(clientRoot, options.appBasePath, entryAsset)) {
|
|
@@ -9185,7 +9186,11 @@ function readPreviewArtifactEnvironmentFile(filePath) {
|
|
|
9185
9186
|
function previewArtifactRuntimeEnvironment(environment) {
|
|
9186
9187
|
return {
|
|
9187
9188
|
...environment,
|
|
9188
|
-
NODE_ENV: environment?.NODE_ENV ?? "production"
|
|
9189
|
+
NODE_ENV: environment?.NODE_ENV ?? "production",
|
|
9190
|
+
// Probe and switcher connect through 127.0.0.1. Linux may resolve
|
|
9191
|
+
// `localhost` to IPv6-only ::1, so the isolated Nest process must bind to
|
|
9192
|
+
// the same explicit private endpoint instead of inheriting app defaults.
|
|
9193
|
+
SERVER_HOST: "127.0.0.1"
|
|
9189
9194
|
};
|
|
9190
9195
|
}
|
|
9191
9196
|
|