Skip to content
Myr

serve-static-module.ts

This file

Path

src/adapter/cloudflare-workers/serve-static-module.ts

12 lines · 368 bytes · TypeScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than f0b094d point at it.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 1–12why, one step back
1// For ES module mode
2import type { Env, MiddlewareHandler } from '../../types'3import type { ServeStaticOptions } from './serve-static'4import { serveStatic } from './serve-static'56const module = <E extends Env = Env>(7 options: Omit<ServeStaticOptions<E>, 'namespace'>8): MiddlewareHandler => {9 return serveStatic<E>(options)10}1112export { module as serveStatic }