To combine web applications on different frameworks

Hi, everyone!
Today, I have a simple question.
Do you have any way to combine web applications on different frameworks?
I mean, for example, a web application A developed using Express.js and another B developed using Next.js.
They are on a same server.

My point is, I would like to treat them with just one url domain like ://www.web-applications.com/A and ://www.web-applications.com/B.
If you have the answer or some hint, please teach me.
Thank you!