Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/middleware/serve-static/index.ts>ServeStaticOptions

Web Framework built on Web Standards
Very Popular
Go to Latest
type alias ServeStaticOptions
import { type ServeStaticOptions } from "https://deno.land/x/hono@v4.2.6/middleware/serve-static/index.ts";

Type Parameters

optional
E extends Env = Env
definition: { root?: string; path?: string; mimes?: Record<string, string>; rewriteRequestPath?: (path: string) => string; onNotFound?: (path: string, c: Context<E>) => void | Promise<void>; }