hi im trying to deploy nextjs app on workers with @opennext/cloudflare wranlger.json ```{ "main":

hi im trying to deploy nextjs app on workers with @opennext/cloudflare
wranlger.json
{
  "main": ".open-next/worker.js",
  "name": "frontend",
  "compatibility_date": "2025-03-25",
  "compatibility_flags": [
    "nodejs_compat"
  ],
  "assets": {
    "directory": ".open-next/assets",
    "binding": "ASSETS"
  },
    "vars": {
    "AUTH_SCRET": "hzDTRm",
   ...
  }
}


i make the deploy When I try to enter the worker URL, the nextjs app throws me 500, and when I look at the logs, it throws me this
 "logs": [
    {
      "message": [
        "ReferenceError: WeakRef is not defined"
      ],
      "level": "error",
      "timestamp": 1747789785073
    },
    {
      "message": [
        " ⨯",
        "ReferenceError: WeakRef is not defined"
      ],
      "level": "error",
      "timestamp": 1747789785073
    }
  ],
Was this page helpful?