mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 10:51:01 +00:00
16 lines
465 B
TypeScript
16 lines
465 B
TypeScript
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||
|
// @ts-ignore
|
||
|
// For ES module mode
|
||
|
import manifest from '__STATIC_CONTENT_MANIFEST'
|
||
|
import type { ServeStaticOptions } from './serve-static'
|
||
|
import { serveStatic } from './serve-static'
|
||
|
|
||
|
const module = (options: ServeStaticOptions = { root: '' }) => {
|
||
|
return serveStatic({
|
||
|
root: options.root,
|
||
|
manifest: options.manifest ? options.manifest : manifest,
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export { module as serveStatic }
|