Domain specific redirect on Cloudflare Pages?

I have a static website/landing page with two index pages for two languages, all other resources are shared. I want to make them available under languageA.domain.com and languageB.domain.com. Is there any way to redirect the individual request to a dedicated index page based on the domain name without using any Javascript?

Unfortunately as per the following Pages documentation, redirects via _redirects by country or language or unsupported at this time:

You could accomplish this with your own server-side logic within Functions though, or perhaps even Redirect Rules.