Add dynamic environment detection
Add dynamic env detect for regenix site