We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7655a6a commit 33ebd1fCopy full SHA for 33ebd1f
lib/Server.js
@@ -143,15 +143,16 @@ function Server(compiler, options) {
143
if(!Array.isArray(options.proxy)) {
144
options.proxy = Object.keys(options.proxy).map(function(context) {
145
var proxyOptions;
146
+ var correctedContext = context.replace(/\/\*$/, "");
147
148
if(typeof options.proxy[context] === 'string') {
149
proxyOptions = {
- context: context,
150
+ context: correctedContext,
151
target: options.proxy[target]
152
};
153
} else {
154
proxyOptions = options.proxy[context];
- proxyOptions.context = context;
155
+ proxyOptions.context = correctedContext;
156
}
157
158
return proxyOptions;
0 commit comments