Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 770ddbf

Browse files
bardmontogeek
authored andcommittedJul 6, 2019
fix(configuration): correction on proxy config (webpack#3173)
1 parent e76cff4 commit 770ddbf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/content/configuration/dev-server.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,10 @@ module.exports = {
10621062
//...
10631063
devServer: {
10641064
proxy: {
1065-
'/api': 'http://localhost:3000',
1066-
changeOrigin: true
1065+
'/api': {
1066+
target: 'http://localhost:3000',
1067+
changeOrigin: true
1068+
}
10671069
}
10681070
}
10691071
};

0 commit comments

Comments
 (0)
Please sign in to comment.