Skip to main content
Module

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

Web Framework built on Web Standards
Extremely Popular
Go to Latest
type alias ServeStaticOptions
import { type ServeStaticOptions } from "https://deno.land/x/hono@v4.2.7/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>; }