@lark-apaas/fullstack-cli 1.1.28-alpha.6 → 1.1.28-alpha.8
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7391,8 +7391,8 @@ async function preUploadStatic(options) {
|
|
|
7391
7391
|
console.error(`${LOG_PREFIX2} preUploadStatic \u8FD4\u56DE\u5F02\u5E38, \u5B8C\u6574\u54CD\u5E94: ${JSON.stringify(response)}`);
|
|
7392
7392
|
return;
|
|
7393
7393
|
}
|
|
7394
|
-
const {
|
|
7395
|
-
if (!
|
|
7394
|
+
const { downloadURLPrefix, uploadPrefix, uploadID, uploadCredential } = response.data || {};
|
|
7395
|
+
if (!downloadURLPrefix || !uploadPrefix || !uploadID) {
|
|
7396
7396
|
console.error(`${LOG_PREFIX2} preUploadStatic \u8FD4\u56DE\u6570\u636E\u4E0D\u5B8C\u6574`);
|
|
7397
7397
|
return;
|
|
7398
7398
|
}
|
|
@@ -7400,7 +7400,7 @@ async function preUploadStatic(options) {
|
|
|
7400
7400
|
console.error(`${LOG_PREFIX2} preUploadStatic \u8FD4\u56DE\u7684\u51ED\u8BC1\u5B57\u6BB5\u4E0D\u5B8C\u6574`);
|
|
7401
7401
|
return;
|
|
7402
7402
|
}
|
|
7403
|
-
console.log(`export STATIC_ASSETS_BASE_URL="${
|
|
7403
|
+
console.log(`export STATIC_ASSETS_BASE_URL="${downloadURLPrefix}"`);
|
|
7404
7404
|
console.log(`export STATIC_UPLOAD_PREFIX="${uploadPrefix}"`);
|
|
7405
7405
|
console.log(`export STATIC_UPLOAD_ID="${uploadID}"`);
|
|
7406
7406
|
console.log(`export STATIC_UPLOAD_AK="${uploadCredential.AccessKeyID}"`);
|