Skip to content

Commit ec99cf6

Browse files
emizzle0x-r4bbit
authored andcommitted
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.
1 parent ae56575 commit ec99cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/embark/src/cmd/cmd_controller.js

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

0 commit comments

Comments
 (0)