diff --git a/config.js b/config.js index 271f13420..3d75f44a8 100644 --- a/config.js +++ b/config.js @@ -47,12 +47,6 @@ const CONFIG = { MONGO_URL: process.env.TALK_MONGO_URL, REDIS_URL: process.env.TALK_REDIS_URL, - //------------------------------------------------------------------------------ - // Plugins - //------------------------------------------------------------------------------ - - PLUGINS_JSON: process.env.TALK_PLUGINS_JSON, - //------------------------------------------------------------------------------ // Server Config //------------------------------------------------------------------------------ diff --git a/plugins.js b/plugins.js index f353cd392..f0c31407f 100644 --- a/plugins.js +++ b/plugins.js @@ -4,9 +4,8 @@ const resolve = require('resolve'); const debug = require('debug')('talk:plugins'); const Joi = require('joi'); const amp = require('app-module-path'); -const { - PLUGINS_JSON -} = require('./config'); + +const PLUGINS_JSON = process.env.TALK_PLUGINS_JSON; // Add the current path to the module root. amp.addPath(__dirname);