Optional-cms-api-env (#4503)

* feat: adding option to specify a separate cms env for testing local choreo and remote cms

* fix: my favorite whoopsie

* formatting

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
wcjord 2025-10-24 09:01:40 -04:00 committed by GitHub
parent e09686ede9
commit cdd34a7f7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,9 @@ class Environment {
}
static String get cmsApi {
final envEntry = appConfigOverride?.choreoApi ?? dotenv.env['CHOREO_API'];
final envEntry = dotenv.env['CMS_API'] ??
appConfigOverride?.choreoApi ??
dotenv.env['CHOREO_API'];
if (envEntry == null) {
return "Not found";
}