Skip to content

Commit 5cc1edf

Browse files
committed
fix favicon route
1 parent 019c8ae commit 5cc1edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/serve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function handleRequest(req, serveDirectory) {
8888
} else if (pathname.startsWith('/files')) {
8989
// serve index.html
9090
return handleStatic(`${hyperparamPath}/dist/index.html`)
91-
} else if (pathname.startsWith('/assets/')) {
91+
} else if (pathname.startsWith('/assets/') || pathname.startsWith('/favicon') ) {
9292
// serve static files
9393
return handleStatic(`${hyperparamPath}/dist${pathname}`)
9494
// else if (pathname.startsWith('/public/')) {

0 commit comments

Comments
 (0)