Skip to content

Commit

Permalink
companion: Support running standalone with custom options (#2428)
Browse files Browse the repository at this point in the history
* Support running standalone with custom options

* Move server.js logic into index.js
  • Loading branch information
cyu authored Aug 31, 2020
1 parent 9c8ff48 commit a4693ed
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 184 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/companion/src/standalone/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const { version } = require('../../package.json')
*
* @returns {object}
*/
exports.getCompanionOptions = () => {
return merge({}, getConfigFromEnv(), getConfigFromFile())
exports.getCompanionOptions = (options = {}) => {
return merge({}, getConfigFromEnv(), getConfigFromFile(), options)
}

/**
Expand Down
Loading

0 comments on commit a4693ed

Please sign in to comment.