Next.js Discord

Discord Forum

Issues with API

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Masai LionOP
Hello! I am using Nextjs@14 and deploying it on Cloudflare Pages (edge runtime)

The issue is shown at Production, where APIs always show Internal Server Error. It´s strange.

I need any ideas on why this issue could be ocurring.

1 Reply

Masai LionOP
Clouflare logs the following:
"logs": [
    {
      "message": [
        "Error: No such module \"__next-on-pages-dist__/functions/api/async_hooks\".\n  imported from \"__next-on-pages-dist__/functions/api/contact.func.js\""
      ],
      "level": "error",