GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: avoid worker exception, graceful 404 (#869) · klimkin/opencode@7e1fc27

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/function/src
    • api.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/function/src/api.ts‎

Copy file name to clipboardExpand all lines: packages/function/src/api.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class SyncServer extends DurableObject<Env> {
108108
}
109109

110110
export default {
111-
async fetch(request: Request, env: Env, ctx: ExecutionContext) {
111+
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
112112
const url = new URL(request.url)
113113
const splits = url.pathname.split("/")
114114
const method = splits[1]
@@ -275,5 +275,7 @@ export default {
275275
headers: { "Content-Type": "application/json" },
276276
})
277277
}
278+
279+
return new Response("Not Found", { status: 404 })
278280
},
279281
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.