Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
owencz1998 authored Oct 7, 2023
1 parent e85a7c1 commit d6b8466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ app.use((ctx) => {
// handle index.html not found
if (
ctx.request.url.pathname === '/' ||
ctx.request.url.pathname === '/index.html'
ctx.request.url.pathname === '/'
) {
ctx.response.status = 404;
ctx.response.body = 'Not found.\nSeems index.html is missing.';
Expand Down

1 comment on commit d6b8466

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on d6b8466 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/server.ts".

Please sign in to comment.