Skip to content

Commit be78ab5

Browse files
committed
Fix proxy: {'*' : '/api' } to work again.
1 parent b3bb2e6 commit be78ab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ function Server(compiler, options) {
143143
if(!Array.isArray(options.proxy)) {
144144
options.proxy = Object.keys(options.proxy).map(function(context) {
145145
var proxyOptions;
146-
var correctedContext = context.replace(/\/\*$/, "");
146+
// For backwards compatibility reasons.
147+
var correctedContext = context.replace(/^\*$/, "**").replace(/\/\*$/, "");
147148

148149
if(typeof options.proxy[context] === 'string') {
149150
proxyOptions = {

0 commit comments

Comments
 (0)