Skip to content

Commit

Permalink
Update proxying-api-requests-in-development.md
Browse files Browse the repository at this point in the history
Use pathFilter option to further include/exclude requests which you want to proxy inside the curly braces.
  • Loading branch information
Tseg-tech authored Dec 18, 2024
1 parent dd420a6 commit 7bdbfde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/proxying-api-requests-in-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
);
};
Expand Down

0 comments on commit 7bdbfde

Please sign in to comment.