Closed 0x0a0d closed 2 years ago
I don't agree with it. The moleculer-channel is a middleware, and moleculer.config
contains settings for ServiceBroker and internal modules only.
You can use env vars this way:
module.exports = {
logger: true,
middlewares: [
ChannelsMiddleware({
adapter: process.env.CHANNELS_ADAPTER_URL
})
]
};
I think channel can be defined in
moleculer.config.js
likes thisbecause current way to use channel middleware, made it can not