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.
proxy: {'*' : '/api' }
1 parent b3bb2e6 commit be78ab5Copy full SHA for be78ab5
lib/Server.js
@@ -143,7 +143,8 @@ 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(/\/\*$/, "");
+ // For backwards compatibility reasons.
147
+ var correctedContext = context.replace(/^\*$/, "**").replace(/\/\*$/, "");
148
149
if(typeof options.proxy[context] === 'string') {
150
proxyOptions = {
0 commit comments