I mean, one good long term solution is either ban or heavily, heavily tax corporate ownership of single family homes. And heavily tax short term vacation rentals. Basically force all the companies that are buying up blocks and blocks of single family housing to sell.
Then, take a look at zoning laws. I have no experience with this side, but they're probably often a barrier to creating medium or high density housing. Which we're gonna need a lot of in the near future.
Apparently foreign home ownership is a big issue in Canada, so I have to assume it's also a (smaller) issue in the US.
Basically, the issue I see is not that there isn't enough housing. It's that corporate greed is pricing people out of their neighborhoods and then the houses are sitting empty because they're barely worth $150k, but the "market" says they can be listed at $400k, and not many people can afford that.