Testflight apps on VPN and MDM devices

What configuration on the mobile app, if any, is required so that we can distribute it over Testflight but also have it testable over devices that are connected to backends that are available only over VPN and on MDM devices.

This is to perform feature testing before the build is tested on production environment and finally goes out to customers