We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2395b2 commit 1ebb26eCopy full SHA for 1ebb26e
src/serve-static.ts
@@ -1,8 +1,8 @@
1
import type { Context, Env, MiddlewareHandler } from 'hono'
2
import { getFilePath, getFilePathWithoutDefaultDocument } from 'hono/utils/filepath'
3
import { getMimeType } from 'hono/utils/mime'
4
-import { createReadStream, lstatSync } from 'fs'
5
-import type { ReadStream, Stats } from 'fs'
+import { createReadStream, lstatSync } from 'node:fs'
+import type { ReadStream, Stats } from 'node:fs'
6
7
export type ServeStaticOptions<E extends Env = Env> = {
8
/**
0 commit comments