From 7bdbfdec80420b5283fd3482b461aac1a824c2d7 Mon Sep 17 00:00:00 2001 From: Tseg-tech <79508950+Tseg-tech@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:52:55 +0300 Subject: [PATCH] Update proxying-api-requests-in-development.md Use pathFilter option to further include/exclude requests which you want to proxy inside the curly braces. --- docusaurus/docs/proxying-api-requests-in-development.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', }) ); };