app.config.json reference - BlueOakJS/generator-blueoak GitHub Wiki

client/src/app.config.json

The app.config.json file defines configuration for multiple environments (e.g. dev, qa, preprod, prod, etc.). It consists of an Object, where each key is the name of an environment, and it's value is an Object that is the configuration for that environment. The entire environment value is made available to the application as the appConfig angular constant. Any properties are allowed in the environment value. To select an environment at build time, use the -d command line switch.

The build system uses the following properties of the environment value:

Property Description
envName Added to the appConfig angular constant-- the name of the environment selected at build time with the -d switch
buildType debug or release. Controls how the environment is built. A release build will concatenate, minify, and uglify the web assets, and build Cordova/MFP apps without symbols, use production certificates and profiles, etc. Debug builds do none of those things. This can be overridden at build time with the --debug or --release switches.
provisioningProfile The provisioning profile to use for iOS app builds (Cordova or MFP). This can be overridden at build time with the --profile switch.
bundleId If this is set, it will override the iOS bundle ID set in the Xcode project.
pushPassword Used for iOS push notifications in the MFP environment. The password for the push notification certificate. Note: You can also set the password on the command line or in the environment.
pushCertFile Used for iOS push notifications in the MFP environment. Path (relative to client) of the certificate file for iOS push notifications.
androidPushKey Used for Android push notifications in the MFP environment. The Android push key.
androidPushSenderId Used for Android push notifications in the MFP environment. The Android sender ID.
mfpServerName Selects the MFP server name to use when running the mfp push command. If not specified, no value will be passed to MFP, and MFP will use the default server.
mfpContextRoot Specifies the context root of the MFP server. Used when running the mfp push command. If not specified, no value will be passed to MFP, and MFP will use whatever context root was previously specified in the application-descriptor.