Files

19 lines
490 B
TypeScript

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();