Open mjcapecci opened 4 years ago
Install the above npm package and create a file in the src folder called setupProxy.js with the following contents:
const proxy = require('http-proxy-middleware') module.exports = function(app) { app.use(proxy('/api', { target: 'http://localhost:5000/' })) }
This middleware may not be necessary, but it's still worth looking into. I will probably want to implement the same solution that I utilized on Contractr.io
Install the above npm package and create a file in the src folder called setupProxy.js with the following contents: