@base44-preview/cli 0.1.9-pr.602.a7206e5 → 0.1.9-pr.603.cb64f7a
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/cli/index.js +6 -12
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -245663,7 +245663,6 @@ var PublishedUrlResponseSchema = exports_external.object({
|
|
|
245663
245663
|
});
|
|
245664
245664
|
var CreateDeploymentResponseSchema = exports_external.object({
|
|
245665
245665
|
deployment_id: exports_external.string(),
|
|
245666
|
-
session_id: exports_external.string(),
|
|
245667
245666
|
asset_uploads: exports_external.object({
|
|
245668
245667
|
type: exports_external.literal("s3"),
|
|
245669
245668
|
uploads: exports_external.array(exports_external.object({
|
|
@@ -245675,7 +245674,6 @@ var CreateDeploymentResponseSchema = exports_external.object({
|
|
|
245675
245674
|
}).nullable().optional()
|
|
245676
245675
|
}).transform((data) => ({
|
|
245677
245676
|
deploymentId: data.deployment_id,
|
|
245678
|
-
sessionId: data.session_id,
|
|
245679
245677
|
assetUploads: data.asset_uploads == null ? null : {
|
|
245680
245678
|
type: "s3",
|
|
245681
245679
|
uploads: data.asset_uploads.uploads.map((upload) => ({
|
|
@@ -248315,20 +248313,16 @@ async function createDeployment(request) {
|
|
|
248315
248313
|
}
|
|
248316
248314
|
return result.data;
|
|
248317
248315
|
}
|
|
248318
|
-
async function finalizeStaticDeployment(deploymentId, indexHtml
|
|
248316
|
+
async function finalizeStaticDeployment(deploymentId, indexHtml) {
|
|
248319
248317
|
const formData = new FormData;
|
|
248320
248318
|
formData.append("index.html", new File([indexHtml], "index.html", { type: "text/html" }));
|
|
248321
|
-
return await postFinalize(deploymentId, formData
|
|
248319
|
+
return await postFinalize(deploymentId, formData);
|
|
248322
248320
|
}
|
|
248323
|
-
async function postFinalize(deploymentId, formData
|
|
248321
|
+
async function postFinalize(deploymentId, formData) {
|
|
248324
248322
|
const appClient = getAppClient();
|
|
248325
248323
|
let response;
|
|
248326
248324
|
try {
|
|
248327
|
-
response = await appClient.post(`deployments/${encodeURIComponent(deploymentId)}/finalize`, {
|
|
248328
|
-
body: formData,
|
|
248329
|
-
timeout: 180000,
|
|
248330
|
-
searchParams: { session_id: sessionId }
|
|
248331
|
-
});
|
|
248325
|
+
response = await appClient.post(`deployments/${encodeURIComponent(deploymentId)}/finalize`, { body: formData, timeout: 180000 });
|
|
248332
248326
|
} catch (error48) {
|
|
248333
248327
|
throw await ApiError.fromHttpError(error48, "finalizing deployment");
|
|
248334
248328
|
}
|
|
@@ -248618,7 +248612,7 @@ async function deployStaticSite(options) {
|
|
|
248618
248612
|
});
|
|
248619
248613
|
}
|
|
248620
248614
|
const indexHtml = await readFile4(join16(outputDir, "index.html"));
|
|
248621
|
-
const finalized = await finalizeStaticDeployment(created.deploymentId, new Uint8Array(indexHtml)
|
|
248615
|
+
const finalized = await finalizeStaticDeployment(created.deploymentId, new Uint8Array(indexHtml));
|
|
248622
248616
|
return { deploymentId: finalized.deploymentId };
|
|
248623
248617
|
}
|
|
248624
248618
|
// src/core/project/deploy.ts
|
|
@@ -268214,4 +268208,4 @@ export {
|
|
|
268214
268208
|
CLIExitError
|
|
268215
268209
|
};
|
|
268216
268210
|
|
|
268217
|
-
//# debugId=
|
|
268211
|
+
//# debugId=F9B7DEAAC34394B764756E2164756E21
|