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