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

x/hono/adapter/deno/serve-static.ts>ServeStaticOptions

Fast, Lightweight, Web-standards
Very Popular
Go to Latest
type alias ServeStaticOptions
import { type ServeStaticOptions } from "https://deno.land/x/hono@v3.12.8/adapter/deno/serve-static.ts";

Type Parameters

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