Azure file storage on October 3 now has incorrect file path

I have inherited an October CMS site (I have no experience with October) and just migrated to v3 from v2. All works fine apart from media library. We use Azure storage for files so have the Azure File Driver plugin. This has historically worked fine but when upgrading to the latest, whenever we upload files to media it duplicates the word media in the file path. So instead of https://ourCDN.com/media/directory/imagefile.png it now reads https://ourCDN.com/media/media/directory/imagefile.png

I have had to mess around with the filesystem.php file to get the azure directory to even show. But I can’t find where to remove this extra /media/ from. Changing this in either the .env file, system.php or the Storage file results in an error.

Any help appreciated.

If anyone has the same issue. I resolved this by using the ‘prefix’ value within disks in filesystems.php file.