{"size": 182, "ext": "js", "max_stars_repo_path": "client/src/setupProxy.js", "max_stars_repo_name": "alex-gagnon/portfolio", "max_stars_repo_stars_event_min_datetime": "2019-06-12T03:33:24.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-12T03:33:24.000Z", "max_issues_repo_path": "client/src/setupProxy.js", "max_issues_repo_name": "alex-gagnon/portfolio", "max_issues_repo_issues_event_min_datetime": "2019-06-11T03:40:04.000Z", "max_issues_repo_issues_event_max_datetime": "2019-09-04T13:26:07.000Z", "max_forks_repo_path": "client/src/setupProxy.js", "max_forks_repo_name": "bokoblin-link/portfolio", "max_forks_repo_forks_event_min_datetime": "2019-11-20T19:47:45.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-20T19:47:45.000Z"}
{"max_stars_count": 1, "max_issues_count": 13, "max_forks_count": 1, "avg_line_length": 30.3333333333, "max_line_length": 66, "alphanum_fraction": 0.6648351648}
const proxy = require('http-proxy-middleware');
const target = process.env.REACT_PROXY || 'http://localhost:3010';

module.exports = app => {
    app.use(proxy('/api', {target}));
};