Their act together was keeping improving pages router, with api routes for server side code.
The closest any JavaScript framework had come to Java and .NET frameworks, battle tested in production for almost 30 years now.
It has been downhill since app routing was introduced.
I have had some very nice experiences with the app router, but I see what you mean.