The high calorie foods like corn, rice and potatoes you need to actually meet the needs of the population if transportation is shut down aren’t what grow best in those greenhouses.
And corn, rice potatoes, wheat and some other crops have good shelf lives so they don’t need to be grown close to where they’re consumed.
I’m all for indoor hydroponic vegetables if they can be grown cheaply so they aren’t cost-prohibitive for a lot of customers. And as long as there’s no government subsidy helping them to operate.
It seems like comment #9 above is touching on the right idea. Have buildings with a translucent roof to let in natural sunlight during daylight hours and use supplemental indoor lighting as needed to create a longer “day” in which they grow.
And indoor growing should make it easier for the farmers to prevent pest infestations.