Changes in consumer behaviour and disruptions to supply chains have resulted in growth in nearshoring – and opportunities for foreign direct investment.