@base44-preview/cli 0.0.3-pr.20.62256c0 → 0.0.3-pr.20.a828d96
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 +2 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -18821,8 +18821,9 @@ async function getSiteFilePaths(outputDir) {
|
|
|
18821
18821
|
*/
|
|
18822
18822
|
async function uploadSite(archivePath) {
|
|
18823
18823
|
const archiveBuffer = await readFile$1(archivePath);
|
|
18824
|
+
const blob = new Blob([archiveBuffer], { type: "application/gzip" });
|
|
18824
18825
|
const formData = new FormData();
|
|
18825
|
-
formData.append("file",
|
|
18826
|
+
formData.append("file", blob, "dist.tar.gz");
|
|
18826
18827
|
const response = await getAppClient().post("deploy-dist", { body: formData });
|
|
18827
18828
|
return DeployResponseSchema.parse(await response.json());
|
|
18828
18829
|
}
|
package/package.json
CHANGED