const azure = {
  identityMetadata: process.env.IDENTITY_METADATA,
  clientID: process.env.REACT_APP_CLIENT_ID,
  validateIssuer: process.env.NODE_ENV == 'production' ? true : false
};

const github = {
  clientID: process.env.REACT_APP_GITHUB_CLIENT_ID,
  clientSecret: process.env.GITHUB_CLIENT_SECRET,
  botToken: process.env.GITHUB_BOT_TOKEN,
  botLogin: process.env.REACT_APP_GITHUB_BOT_LOGIN,
  webHookSecret: process.env.GITHUB_WEBHOOK_SECRET,
};

const app = {
  groupConfigPath: process.env.GROUP_CONFIG_PATH,
  sendGridApiKey: process.env.SENDGRID_API_KEY,
  emailSender: process.env.SENDGRID_EMAIL_SENDER
};

function validateConfig(configObject) {
  for (let prop of Object.keys(configObject)) {
    if (configObject[prop] === undefined) throw new Error(`Missing environment variable: ${prop}`);
  }
}

validateConfig(azure);
validateConfig(github);
validateConfig(app);

module.exports = {
  azure,
  github,
  app
};

@@ -1,12 +1,39 @@
+const fs = require('fs');%0A%0A
 const azure 
@@ -835,16 +835,130 @@
 %0A  %7D%0A%7D%0A%0A
+function loadAppData() %7B%0A  return JSON.parse(fs.readFileSync(%60$%7B__dirname%7D/$%7Bapp.groupConfigPath%7D%60, 'utf-8'));%0A%7D%0A%0A
 validate
@@ -1018,16 +1018,48 @@
 (app);%0A%0A
+const appData = loadAppData();%0A%0A
 module.e
@@ -1092,13 +1092,24 @@
 ub,%0A
-
   app
+,%0A  appData
 %0A%7D;%0A

Add appdata for config