@base44-preview/cli 0.1.33-pr.643.3107411 → 0.1.33-pr.643.43257b0
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 +3 -15
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -236598,13 +236598,6 @@ var FinalizeDeploymentResponseSchema = object({
|
|
|
236598
236598
|
}).transform((data) => ({
|
|
236599
236599
|
deploymentId: data.deployment_id
|
|
236600
236600
|
}));
|
|
236601
|
-
var PublishDeploymentResponseSchema = object({
|
|
236602
|
-
git_commit_hash: string2(),
|
|
236603
|
-
deployed_at: string2()
|
|
236604
|
-
}).transform((data) => ({
|
|
236605
|
-
gitHash: data.git_commit_hash,
|
|
236606
|
-
deployedAt: data.deployed_at
|
|
236607
|
-
}));
|
|
236608
236601
|
|
|
236609
236602
|
// src/core/project/api.ts
|
|
236610
236603
|
var PUBLIC_SETTINGS = {
|
|
@@ -239690,20 +239683,15 @@ async function finalizeDeployment(deploymentId, sessionId, payload) {
|
|
|
239690
239683
|
}
|
|
239691
239684
|
async function publishDeployment(gitHash) {
|
|
239692
239685
|
const appClient = getAppClient();
|
|
239693
|
-
let response;
|
|
239694
239686
|
try {
|
|
239695
|
-
|
|
239687
|
+
await appClient.post("deploy", {
|
|
239696
239688
|
json: { git_commit_hash: gitHash },
|
|
239697
239689
|
timeout: 120000
|
|
239698
239690
|
});
|
|
239699
239691
|
} catch (error) {
|
|
239700
239692
|
throw await ApiError.fromHttpError(error, "publishing deployment");
|
|
239701
239693
|
}
|
|
239702
|
-
|
|
239703
|
-
if (!result.success) {
|
|
239704
|
-
throw new SchemaValidationError("Invalid response from server", result.error);
|
|
239705
|
-
}
|
|
239706
|
-
return { ...result.data, appUrl: await getSiteUrl() };
|
|
239694
|
+
return { gitHash, appUrl: await getSiteUrl() };
|
|
239707
239695
|
}
|
|
239708
239696
|
// src/core/site/config.ts
|
|
239709
239697
|
async function getSiteFilePaths(outputDir) {
|
|
@@ -274018,4 +274006,4 @@ export {
|
|
|
274018
274006
|
runCLI
|
|
274019
274007
|
};
|
|
274020
274008
|
|
|
274021
|
-
//# debugId=
|
|
274009
|
+
//# debugId=EFEC9EE9608071F164756E2164756E21
|