If you want to stay near family and friends, find a nice cheap place an hour or two away, if you want a shorter commute that's a luxury, not a necessity, and you should work for it.
Basic incomes are for the minimum needed to live a decent life, living in a specific expensive location is a luxury you should have to work for.
That's exactly how it should work, even in a system with no UBI. Sadly, people see the state as the grand fixer and enabler of everything.
Eventually, we'd all realize that certain places simply cost more to live in due to reasons outside of everyone's control. E.g. maybe it's hard to create affordable safe housing in a very earthquake/tornado prone area. Or hard to deliver fresh healthy produce to a city in the middle of nowhere like a desert. I exaggerate, of course, but these minor details still affect prices to a certain extent. We can't have cosmic-justice.
There are already neighborhoods now where most people, including me, cannot afford to live, and I don't see it as a tremendous injustice.
So ideally we'd avoid this and everyone would get the same amount of money. But, if we continue to let city prices shoot up, we might end up in a place where people want a job but can't get one because they live somewhere cheap and can't afford to move to the city where all the jobs are on their smaller basic income payment.
With or without basic income, we're clearly on an unsustainable path of letting cities get so much more expensive so quickly.