import { serve } from "bun"; import { handleComfyApi } from "./server/comfy-routes"; import index from "./view/index.html"; const server = serve({ routes: { "/api/comfy/models": handleComfyApi, "/api/comfy/generate": handleComfyApi, "/api/comfy/segment": handleComfyApi, "/*": index, }, development: process.env.NODE_ENV !== "production" && { hmr: true, console: true, }, }); console.log(`Server running at ${server.url}`);