Skip to content

Commit 9b15976

Browse files
committed
Provide a default response for root request.
1 parent 974366b commit 9b15976

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/handlers/get.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function getRobots() {
2626

2727
export default async function getHandler({ env, daCtx }) {
2828
const { path } = daCtx;
29+
if (path === '/') return get404();
2930

3031
if (path.startsWith('/favicon.ico')) return get404();
3132
if (path.startsWith('/robots.txt')) return getRobots();

0 commit comments

Comments
 (0)