Debugging Remix server-side 500s

After pushing a change to a Remix app to Pages + Functions, I'm getting
500
errors in the browser, but Cloudflare Pages Functions logs show "successful" requests. How do I get the underlying error?
{
  "outcome": "ok",
  "scriptName": "pages-worker--1051688-production",
  "exceptions": [],
  "logs": [
    {
      "message": [
        "Error: Unexpected Server Error"
      ],
      "level": "error",
      "timestamp": 1683332030573
    }
  ],
  "eventTimestamp": 1683332030459,
  "event": {
    "request": {
      "url": "https://dd33ea81.cf-remix-65c.pages.dev/",
      "method": "GET",
      "headers": {
        ...
      },
      "cf": {
        ...
      }
    },
    "response": {
      "status": 500
    }
  },
  "id": 0
}
Was this page helpful?