fix(@embark/storage): Allow upload when storage is disabled

Even when the storage config sets storage to disabled, upload should still be allowed, as uploaded dapps should have the ability to NOT use storage once uploaded.
This commit is contained in:
emizzle 2020-04-09 19:33:10 +10:00 committed by Pascal Precht
parent ae56575554
commit ec99cf6ece
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ class EmbarkController {
async.waterfall([ async.waterfall([
function initEngine(callback) { function initEngine(callback) {
engine.init({}, () => { engine.init({}, () => {
if (engine.config.embarkConfig.config.storage === false || engine.config.storageConfig.enabled === false) { if (engine.config.embarkConfig.config.storage === false) {
engine.logger.error(__('Storage configuration is disabled in embark.json. Please provide a storage file before uploading')); engine.logger.error(__('Storage configuration is disabled in embark.json. Please provide a storage file before uploading'));
engine.logger.info(__('You can find an example here: %s', 'https://github.com/embarklabs/embark/blob/master/templates/demo/config/storage.js'.underline)); engine.logger.info(__('You can find an example here: %s', 'https://github.com/embarklabs/embark/blob/master/templates/demo/config/storage.js'.underline));
process.exit(1); process.exit(1);