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.

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