NextJS Page compilation stuck at " Creating an optimized production build"

Hello Community :wave:

I’ve been trying to run my nextjs app in CF Pages, its a Next 13 app and I’ve enabled all the options described in the docs.

But for some reason the production in build stuck in the following place for almost 20 mins. Any idea what would be the reason?

If there’s not already an issue open, I would recommend creating one with a reproduction at the following repo. GitHub - cloudflare/next-on-pages

Honestly though, next-on-pages itself is in a state right now that I couldn’t personally recommend it due to lack of maintenance and support, and would encourage you to consider an alternate solution like Netlify or Vercel for your project if you need a quick resolution.