Nextjs dynamic routes not working

Hello,

I have a dynamic route in my Nextjs app that serves as my redirect uri for Google OAuth. It doesn’t work on Cloudflare pages, providing a 404 page. I am not doing any server side routing, it’s just static. Any reason why this is happening? Is there additional config I should setup?

Thanks