The thing you imagine has never really been true. Rivers, seas and canals and later railroads and highways have always brought food to the city from as far as it could be transported before it spoiled.
Rome got its wheat from Egypt and its olive oil from around the Mediterranean.
Ancient egypt sent food up and down the nile to population centers in Cairo and Thebes.
And so on.
Eh, I suppose that that's fair.