Can't collect data from Contentful on Cloudflare Pages

For Workes & Pages, what is the name of the domain?

https://kanarent-new.pages.dev/

What is the issue or error you’re encountering

I got errors: 1) in build logs: “EvalError: Code generation from strings disallowed for this context” in build logs and “uncaughtException: Error: A Node.js API is used (setImmediate) which is not supported in the Edge Runtime.(…) at K (webpack-internal:///(rsc)/./node_modules/contentful/dist/contentful.browser.min.js:4544:21) at eval (webpack-internal:///(rsc)/./node_modules/contentful/dist/contentful.browser.min.js:4535:63) at node:internal/process/task_queues:140:7 (…)” 2) in console after adding export const runtime = “edge” on pages collecting data from Contentful.

What steps have you taken to resolve the issue?

Added @cloudflare/next-on-pages nad 'export const runtime = “edge” ’ when the page worked fine on Vercel and Netlify but not on Cloudflare pages.

Screenshot of the error

Did you find a solution or did you move back to vercel or netlify? Facing the same issue here.