Many companies are rethinking supply chains amid disruptions from the war in Ukraine and the pandemic.