Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

AppFlow Environment variable

$
0
0

@mypraxis wrote:

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;
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>