Skip to main content
Module

x/hono/middleware.ts>ServeStaticOptions

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
type alias ServeStaticOptions
import { type ServeStaticOptions } from "https://deno.land/x/hono@v4.0.4/middleware.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>; }