Importing non-existent Express app in Worker
The Worker fetch handler imports ./index.js expecting a default Express app and then calls app(mockReq, mockRes), but server/index.ts does not export an app—it bootstraps an HTTP server and returns nothing—so this destructuring yields undefined and the Worker will throw TypeError: app is not a function on every request. The new Cloudflare deployment will therefore 500 immediately unless the Worker imports a real handler or the server entry exports one.
Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in #19 (comment)