AppFlow Environment variable

Hi there! I’m using the AppFlow Growth plan.

There is the feature to define an environment variable. I want to detect inside the js of the app if I’m in the debug modus or normal modus. I’m not using Ionic for my app just plain cordova with Framework7.

Can I use @ionic/app-scripts@3.2.0 without ionic?
Or is there another way to use something like the following code:

switch (process.env.CI_GIT_REF) {
  case 'master':
    return productionConfig;
  case 'staging':
    return stagingConfig;
  default:
    return localConfig;
}