hono-utils
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
example.http.ts
https://matt_hallway--1a84e73ab6174e33ab92b7e044f0b4d1.web.val.run
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