Remote work may somewhat alleviate the problem, though it will take time and it won't dissappear entirely.
My colleagues used to commute in by train from two hours away each day, but I'm guessing they're leaning heavily into remote work now.
There's nice areas in the UK which are dying because everyone wants to live in some metropolitan area. It's a real pity, but I can't see the trend reversing anytime soon.
Maybe because
> My colleagues used to commute in by train from two hours away each day
?
If it's effectively impossible to find housing in San Francisco at a price that a barista can afford, and you're OK with that, then you're saying it's OK for San Francisco to have no baristas. (Or for baristas to be homeless.)