/** * Standalone server for the Cal module. * Serves rcal.online independently. */ import { Hono } from "hono"; import { serveStatic } from "hono/bun"; import { calModule } from "./mod"; const app = new Hono(); app.use("/modules/cal/*", serveStatic({ root: "./dist" })); app.use("/*", serveStatic({ root: "./dist" })); app.route("/", calModule.routes); console.log(`[rCal Standalone] Listening on :3000`); export default { port: 3000, fetch: app.fetch };