Getting 500 error after deploying my NextJS app to Cloudflare Pages.

I am using NextJS v14

I followed all the step here: https://github.com/cloudflare/next-on-pages/tree/main/packages/next-on-pages#quick-start

When I run npx @cloudflare/next-on-pages locally I get no error and a .vercel dir is generated.

I have also found these tutorials
In the tutorials they also install wrangler and vercel packages as well as modify the versions of the packages. I have tried this but get the same 500 result.

Any suggestions?
Was this page helpful?