Skip to content

Commit

Permalink
fix: devServer proxy config should support array type
Browse files Browse the repository at this point in the history
  • Loading branch information
北灼 committed Nov 2, 2022
1 parent ea4c98a commit 9bd142c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/util/prepareProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function prepareProxy (proxy, appPublicFolder) {
if (!proxy) {
return undefined
}
if (Array.isArray(proxy) || (typeof proxy !== 'object' && typeof proxy !== 'string')) {
if (typeof proxy !== 'object' && typeof proxy !== 'string') {
console.log(
chalk.red(
'When specified, "proxy" in package.json must be a string or an object.'
Expand Down

0 comments on commit 9bd142c

Please sign in to comment.