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 3bedad1 commit 25509f5Copy full SHA for 25509f5
packages/cli/bin/cli/get-url.js
@@ -1,4 +1,9 @@
1
'use strict'
2
3
-module.exports = input =>
4
- input || process.env.DEPLOY_URL || process.env.DEPLOY_PRIME_URL || process.env.URL
+const prependHttp = require('prepend-http')
+
5
+module.exports = input => {
6
+ const value = input || process.env.DEPLOY_URL || process.env.DEPLOY_PRIME_URL || process.env.URL
7
+ const collection = Array.isArray(value) ? value : value.split(',').map(item => item.trim())
8
+ return collection.map(prependHttp)
9
+}
packages/cli/package.json
@@ -45,6 +45,7 @@
45
"meow": "~9.0.0",
46
"neat-log": "~3.1.0",
47
"ora": "~5.0.0",
48
+ "prepend-http": "~3.0.1",
49
"pretty-ms": "~7.0.1",
50
"update-notifier": "~5.1.0"
51
},
0 commit comments