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 ee37e90 commit e20e9acCopy full SHA for e20e9ac
index.js
@@ -1,11 +1,11 @@
1
-const proxy = require('http-proxy-middleware');
+const { createProxyMiddleware } = require('http-proxy-middleware');
2
3
module.exports = (api, options) => {
4
const opts = options.pluginOptions && options.pluginOptions.proxy;
5
6
if (opts && (opts.enabled === undefined || opts.enabled)) {
7
api.configureDevServer((app) => {
8
- app.use(proxy(
+ app.use(createProxyMiddleware(
9
opts.context,
10
opts.options
11
));
0 commit comments