Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "fix(local-dev): fix proxy for login route (#236)"
This reverts commit 479f105.
  • Loading branch information
gabe-lyons committed Sep 9, 2021
commit 38a99f70b8f46be16380a32144c1d9d5862c85d1
6 changes: 1 addition & 5 deletions datahub-web-react/src/setupProxy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
const logInFilter = function (pathname, req) {
return pathname.match('^/logIn') && req.method === 'POST';
};

if (process.env.REACT_APP_MOCK === 'true' || process.env.REACT_APP_MOCK === 'cy') {
// no proxy needed, MirageJS will intercept all http requests
module.exports = function () {};
Expand All @@ -12,7 +8,7 @@ if (process.env.REACT_APP_MOCK === 'true' || process.env.REACT_APP_MOCK === 'cy'
module.exports = function (app) {
app.use(
'/logIn',
createProxyMiddleware(logInFilter, {
createProxyMiddleware({
target: 'http://localhost:9002',
changeOrigin: true,
}),
Expand Down