You mean like Github Codespaces & Jetbrains Space? Or like Docker containers? You can also go even further and stream entire VMs to developers graphically, like a remote desktop.
It also depends a lot on your stack. In the web dev world, these days Next takes care of most of that and all you really have to worry about are node versions and different CPU architectures (devs on Apple Silicon, servers on x86).