Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 010b226

Browse files
committed
Don't render '/favicon.ico'
1 parent 2906a7d commit 010b226

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/server.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ export class Server {
230230
return
231231
}
232232

233+
if (pathname === '/favicon.ico') {
234+
resp.body = 'not found'
235+
end(404)
236+
}
237+
233238
// serve APIs
234239
if (pathname.startsWith('/api/')) {
235240
const route = await aleph.getAPIRoute({

0 commit comments

Comments
 (0)