diff --git a/app/srv/site.zip b/app/srv/site.zip index 5c1a4e69..9ade75fd 100644 Binary files a/app/srv/site.zip and b/app/srv/site.zip differ diff --git a/app/web/src/render/editor/panel/toolbar/center/api/ExternalDeploy.tsx b/app/web/src/render/editor/panel/toolbar/center/api/ExternalDeploy.tsx index 36347b88..0d71f44e 100644 --- a/app/web/src/render/editor/panel/toolbar/center/api/ExternalDeploy.tsx +++ b/app/web/src/render/editor/panel/toolbar/center/api/ExternalDeploy.tsx @@ -50,7 +50,9 @@ export const ExternalDeploy = () => { local.domains = res.domains; local.deploys = res.deploys; } - } catch (e) {} + } catch (e) { + console.log(p.site.api_url, e); + } local.render(); })(); }, [p.site.api_url]); diff --git a/pkgs/core/build.ts b/pkgs/core/build.ts index 5130b6ab..ed96fd76 100644 --- a/pkgs/core/build.ts +++ b/pkgs/core/build.ts @@ -4,27 +4,26 @@ import { Plugin, context } from "esbuild"; import { $ } from "execa"; import { removeAsync, writeAsync } from "fs-jetpack"; -// await removeAsync(dir.path("app/static")); -// await removeAsync(dir.path("app/web/.parcel-cache")); -// await removeAsync(dir.path("app/static")); +await removeAsync(dir.path("app/web/.parcel-cache")); +await removeAsync(dir.path("app/static")); -// const args = [ -// "node", -// dir.path("node_modules/.bin/parcel"), -// "build", -// "./src/index.tsx", -// // "--no-optimize", -// "--no-scope-hoist", -// "--dist-dir", -// dir.path(`app/static`), -// ]; +const args = [ + "node", + dir.path("node_modules/.bin/parcel"), + "build", + "./src/index.tsx", + // "--no-optimize", + "--no-scope-hoist", + "--dist-dir", + dir.path(`app/static`), +]; -// const parcel = spawn({ -// cmd: args, -// cwd: dir.path("app/web"), -// stdio: ["ignore", "inherit", "inherit"], -// }); -// await parcel.exited; +const parcel = spawn({ + cmd: args, + cwd: dir.path("app/web"), + stdio: ["ignore", "inherit", "inherit"], +}); +await parcel.exited; // listAsync(dir.path("app/static")).then(async (files) => { // if (files) {