What user problem are we solving?
dlp frontend took too long to load on my end in windows and /api/training/test route gave me 500 error due to proxying issue.
What solution does this PR provide?
From searching in stackoverflow, it was discovered that I needed to use 127.0.0.1 instead of localhost and when I made that switch within next.config.js under the proxy field, the api request gave 200 and I was able to see the dashboard
Testing Methodology
Spun up DLP locally and monitor network logs for the /api/training/test endpoint and see if status code of 200 is returned.
Any other considerations
informing the rest of the team!
localhost proxy fix + SWC compilation
What user problem are we solving? dlp frontend took too long to load on my end in windows and /api/training/test route gave me 500 error due to proxying issue. What solution does this PR provide? From searching in stackoverflow, it was discovered that I needed to use 127.0.0.1 instead of localhost and when I made that switch within
next.config.js
under theproxy
field, the api request gave 200 and I was able to see the dashboard Testing Methodology Spun up DLP locally and monitor network logs for the /api/training/test endpoint and see if status code of 200 is returned.Any other considerations informing the rest of the team!
Solves #951