Hello everyone, I have a problem uploading my nextjs application in cloudflare using the build comm

Hello everyone,
I have a problem uploading my nextjs application in cloudflare using the build command for "normal nextjs" / not static nextjs. I have some dynamic paths / routes where I'm using some server built-in packages (e.g. crypto / http / etc...). Cloudflare requires me to put
export const runtime = "edge";
, while I need "use server" at the top of my page. When trying to build the application on Cloudflare, it gives an errors saying that
export const runtime = "edge";
needs to be async / all functions need to be async.
Is there any solutions to it?
Was this page helpful?