Skip to content

Commit

Permalink
[frontend] update for breaking changes in http-proxy-middleware v3
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed May 31, 2024
1 parent a1033f4 commit 46934da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opencti-platform/opencti-front/builder/dev/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ const debounce = (func, timeout = 500) => {
}, timeout);
};
};
const middleware = (target, ws = false) => createProxyMiddleware(basePath + target, {
const middleware = (target, ws = false) => createProxyMiddleware({
target: process.env.BACK_END_URL ?? "http://localhost:4000",
pathFilter: basePath + target,
changeOrigin: true,
ws,
})
Expand Down

0 comments on commit 46934da

Please sign in to comment.