feat: deployable design studio and updated component showcase

This commit is contained in:
Clintchiz committed 2026-10-19 13:18:06 +05:30
1 parent 3dddcaac1a
commit 3987ddbcfe
113 files changed
+4544 -1039

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { startStudio } from "./studio.ts";
const studio = await startStudio();
const site = Bun.spawn([process.execPath, "dist/server.js"], {
stdout: "inherit",
stderr: "inherit",
stdin: "inherit",
env: process.env,
});
const stop = () => {
studio.stop(true);
site.kill("SIGTERM");
};
process.on("SIGINT", stop);
process.on("SIGTERM", stop);
const code = await site.exited;
studio.stop(true);
process.exit(code);