Dynamic Routes not working


I have a frontend (e-commerce) that has dynamic routes. They work without any issues in Vercel, but in Cloudflare Pages, dynamic routes return a 404.

The page that is giving the 404:

But on the other hand, products (also dynamic) are showing correctly:

Any help to try and solve this would be really appreciated.

Thank you!