diff --git a/docusaurus/docs/proxying-api-requests-in-development.md b/docusaurus/docs/proxying-api-requests-in-development.md index 11cf1198265..86e249d9427 100644 --- a/docusaurus/docs/proxying-api-requests-in-development.md +++ b/docusaurus/docs/proxying-api-requests-in-development.md @@ -99,10 +99,10 @@ const { createProxyMiddleware } = require('http-proxy-middleware'); module.exports = function (app) { app.use( - '/api', createProxyMiddleware({ target: 'http://localhost:5000', changeOrigin: true, + pathFilter: '/api', }) ); };