Shouldnt we move this to ApplicationResource since there's no way to add env vars to domains and other resources?