Works On My Machine
The dashboard works locally but production still sends API requests to localhost.
The bug report
You get the whole project — a React front end, an Express API, and Mongoose models — opened in a browser editor. Reproduce the symptom by reading the code, change what’s wrong, and run the hidden tests to prove it.
What the fix must prove
- builds the dashboard endpoint correctly
- uses the deployment API URL supplied by the environment
- removes a trailing slash before appending a route