In continuation to post, i have another question. There are a bunch of redirects that we hit on kibana load using hack.js file. In order to read env at this level the method using
injectUiAppVars doesn't work since plugin hasn't been accessed yet. This makes either angular service or
chrome.getInjected return null.
Is there a way to pass these vars, either through kibana.yml or
process.env['OLDPWD'] to hack.js file.