Skip to content

Commit

Permalink
Merge pull request #1825 from HHS/cml/newserve
Browse files Browse the repository at this point in the history
chore: added error path
  • Loading branch information
devops-chris authored Dec 20, 2023
2 parents 4d96a06 + e10b782 commit b340692
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Bun.serve({
return new Response(file);
},
error() {
return new Response(null, { status: 404 });
let filePath = BASE_PATH + "/index.html";
const file = Bun.file(filePath);
return new Response(file);
// return new Response(null, { status: 404 });
},
});

0 comments on commit b340692

Please sign in to comment.