feat: deployable design studio and updated component showcase
This commit is contained in:
1 parent
3dddcaac1a
commit
3987ddbcfe
113 files changed
+4544
-1039
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { createStudioHandler } from "@wrnexus/design-studio/server";
|
||||
|
||||
export async function startStudio() {
|
||||
const fetch = await createStudioHandler({
|
||||
hosted: { basePath: "/design-studio" },
|
||||
});
|
||||
const server = Bun.serve({
|
||||
hostname: "127.0.0.1",
|
||||
port: Number(process.env.DESIGN_STUDIO_PORT ?? 4320),
|
||||
fetch,
|
||||
});
|
||||
console.log(
|
||||
`Export-only Design Studio listening on ${server.url}design-studio/`,
|
||||
);
|
||||
return server;
|
||||
}
|
||||
|
||||
if (import.meta.main) await startStudio();
|
||||
Reference in new issue
Block a user