Skip to content

Commit 9bd142c

Browse files
author
北灼
committed
fix: devServer proxy config should support array type
1 parent ea4c98a commit 9bd142c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/util/prepareProxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function prepareProxy (proxy, appPublicFolder) {
2727
if (!proxy) {
2828
return undefined
2929
}
30-
if (Array.isArray(proxy) || (typeof proxy !== 'object' && typeof proxy !== 'string')) {
30+
if (typeof proxy !== 'object' && typeof proxy !== 'string') {
3131
console.log(
3232
chalk.red(
3333
'When specified, "proxy" in package.json must be a string or an object.'

0 commit comments

Comments
 (0)