Harden Nitro runtime and health handling

This commit is contained in:
lucast committed 2026-09-29 15:57:31 +02:00
1 parent f377424d3a
commit 0cf29e0e06
3 files changed
+5

No files matched your search

+1
View File
@@ -0,0 +1 @@
export default defineEventHandler(() => ({ status: "ok" }))
+1
View File
@@ -94,5 +94,6 @@ export default defineEventHandler(async (event) => {
}
if (event.node.req.method === "HEAD") return null
if (metadata.size === 0) return null
return sendStream(event, createReadStream(file.path, { start, end }))
})