egg icon indicating copy to clipboard operation
egg copied to clipboard

how to get app.config in agent.js?i think it's very common

Open bymaxchen opened this issue 8 years ago • 2 comments

bymaxchen avatar Jul 02 '18 09:07 bymaxchen

Translation of this issue:


Can I get app.config in agent.js? I feel that this need is quite big.

egg-bot avatar Jul 02 '18 09:07 egg-bot

// agent.js
module.exports = agent => {
  console.log(agent.config);
});

atian25 avatar Jul 02 '18 09:07 atian25