Add environment detection in bootstrap>start