Skip to content

Commit 52a069c

Browse files
schettino72LinusBorg
authored andcommitted
Fix bug in dev-server when a proxyTable entry is a string (vuejs-templates#965)
`options` can not be a `const` because it is modified if value is a string.
1 parent 9937176 commit 52a069c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/build/dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ app.use(hotMiddleware)
5151

5252
// proxy api requests
5353
Object.keys(proxyTable).forEach(function (context) {
54-
const options = proxyTable[context]
54+
let options = proxyTable[context]
5555
if (typeof options === 'string') {
5656
options = { target: options }
5757
}

0 commit comments

Comments
 (0)