Daily transportation expenses you incur while traveling from home to one or more regular places of business are generally nondeductible commuting expenses. However, there may be exceptions to this general rule. You can deduct daily transportation expenses incurred going between your residence and a temporary work station outside the metropolitan area where you live. Also, daily transportation expenses can be deducted if (1) you have one or more regular work locations away from your residence; or (2) your residence is your principal place of business and you incur expenses going between the residence and another work location in the same trade or business, regardless of whether the work is temporary or permanent and regardless of the distance.
See https://www.irs.gov/publications/p463#en_US_2023_publink100033911