When is the best time to change site domain extension

Getting ready to attempt moving local site to online. I couldn’t develop it locally with the .com extension but that’s what it will be when it’s live. My question is, when should I change the site domain extension… before or after the move? And if it’s before, is the site domain change feature in the Overview tab of Local By Flywheel the way to do it sitewide?
Thanks for your help.