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 5659fd9 commit 1c2c512Copy full SHA for 1c2c512
lib/Server.js
@@ -142,16 +142,17 @@ function Server(compiler, options) {
142
if(!Array.isArray(options.proxy)) {
143
options.proxy = Object.keys(options.proxy).map(function (context) {
144
var proxyOptions;
145
+ var correctedContext = context.replace(/\/\*$/, "");
146
147
if(typeof options.proxy[context] === 'string') {
148
proxyOptions = {
- context: context,
149
+ context: correctedContext,
150
target: options.proxy[target]
151
};
152
}
153
else {
154
proxyOptions = options.proxy[context];
- proxyOptions.context = context;
155
+ proxyOptions.context = correctedContext;
156
157
158
return proxyOptions;
0 commit comments