Hono Utils

Serving Static Files

import { Hono } from "jsr:@hono/hono@4.7.5" import { serveStatic } from "https://esm.town/v/pomdtr/hono-utils/mod.ts" const app = new Hono() app.use("*", serveStatic({ // alway use import.meta.resolve instead of a relative path root: import.meta.resolve("./static") })) export default app.fetch