We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9292b11 commit 22b8d1bCopy full SHA for 22b8d1b
bin/deploy.js
@@ -7,9 +7,15 @@
7
const Build = require('./build');
8
const CONFIG = require('../_config');
9
const Clean = require('./clean');
10
+const _ = require('lodash');
11
const fs = require('fs');
12
const pkgcloud = require('pkgcloud');
13
14
+// Do not continue without configuration
15
+if (_.isEmpty(CONFIG.cdn.storage)) {
16
+ throw new Error('Storage configuration is not defined');
17
+}
18
+
19
const storageClient = pkgcloud.storage.createClient(CONFIG.cdn.storage);
20
21
function _upload (client, src, dest) {
0 commit comments