FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
matt_hallway
matt_hallwayhono-utils
Remix of pomdtr/hono-utils
Public
Like
hono-utils
Home
Code
4
static
2
README.md
H
example.http.ts
mod.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/4/2025
Viewing readonly version of main branch: v1
View latest version
README.md

Hono Utils

Serving Static Files

Create val
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
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesVersion controlCLIAI agentsCode intelligenceSlack integrationsGTMPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.