This commit is contained in:
Rizky 2023-10-19 07:15:50 +00:00
parent 86c8f16aee
commit 093af3d3bc
3 changed files with 21 additions and 20 deletions

Binary file not shown.

View File

@ -50,7 +50,9 @@ export const ExternalDeploy = () => {
local.domains = res.domains; local.domains = res.domains;
local.deploys = res.deploys; local.deploys = res.deploys;
} }
} catch (e) {} } catch (e) {
console.log(p.site.api_url, e);
}
local.render(); local.render();
})(); })();
}, [p.site.api_url]); }, [p.site.api_url]);

View File

@ -4,27 +4,26 @@ import { Plugin, context } from "esbuild";
import { $ } from "execa"; import { $ } from "execa";
import { removeAsync, writeAsync } from "fs-jetpack"; 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/web/.parcel-cache")); await removeAsync(dir.path("app/static"));
// await removeAsync(dir.path("app/static"));
// const args = [ const args = [
// "node", "node",
// dir.path("node_modules/.bin/parcel"), dir.path("node_modules/.bin/parcel"),
// "build", "build",
// "./src/index.tsx", "./src/index.tsx",
// // "--no-optimize", // "--no-optimize",
// "--no-scope-hoist", "--no-scope-hoist",
// "--dist-dir", "--dist-dir",
// dir.path(`app/static`), dir.path(`app/static`),
// ]; ];
// const parcel = spawn({ const parcel = spawn({
// cmd: args, cmd: args,
// cwd: dir.path("app/web"), cwd: dir.path("app/web"),
// stdio: ["ignore", "inherit", "inherit"], stdio: ["ignore", "inherit", "inherit"],
// }); });
// await parcel.exited; await parcel.exited;
// listAsync(dir.path("app/static")).then(async (files) => { // listAsync(dir.path("app/static")).then(async (files) => {
// if (files) { // if (files) {