[clean up][s]: removed outdated apollo server mocks and config module which is now replaced by next.config.js.

Also, removed all leftover and not used packages and npm scripts.
This commit is contained in:
anuveyatsu
2020-06-23 10:54:57 +06:00
parent 55d9c68b34
commit 10b0b2a865
13 changed files with 67 additions and 4385 deletions

View File

@@ -1,25 +0,0 @@
'use strict';
const nconf = require('nconf');
require('dotenv').config({ path: process.env.DOTENV_PATH || '.env' });
nconf.argv().env();
nconf.use('memory');
const dms = (process.env.DMS || 'http://mock.ckan').replace(/\/?$/, '');
const cms = (process.env.CMS || 'http://mock.cms').replace(/\/?$/, '');
// This is the object that you want to override in your own local config
nconf.defaults({
env: process.env.NODE_ENV || 'development',
debug: process.env.DEBUG || false,
DMS: dms,
CMS: cms,
});
module.exports = {
get: nconf.get.bind(nconf),
set: nconf.set.bind(nconf),
reset: nconf.reset.bind(nconf),
};