-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Open
Description
What problem does this feature solve?
devServer.proxy cannot be used to proxy root requests now. It is very usefull when your vue app is under some php project.
What does the proposed API look like?
Webpack DevServer can be set to proxy root requests too: https://webpack.js.org/configuration/dev-server/#devserverproxy
with this config:
module.exports = {
//...
devServer: {
index: '', // specify to enable root proxying
host: '...',
contentBase: '...',
proxy: {
context: () => true,
target: 'http://localhost:1234'
}
}
};
but now this config throw error:
When `proxy` in package.json is an object, each `context` object must have a `target` property specified as a url string
peterbaricic, evry-johber, angelomelonas, probil, vbaranov-zbr and 5 more
Metadata
Metadata
Assignees
Labels
No labels