1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 30x 30x 30x 144x 139x | const server = require('../'); const instance = require('./instance'); // Parse the server options module.exports = (...args) => { // A server.js instance or the promise of it, just return it if (instance(args[0])) return args[0]; // Be able to set global variables from outside return Object.assign({}, ...args.reverse(), { env: undefined, secret: undefined }); }; |