Upgrade to Create-React-App 2

This commit is contained in:
Lambros Petrou 2018-10-06 13:03:55 +01:00
parent 895c86b61a
commit 397f8281a0
3 changed files with 9413 additions and 4726 deletions

10
src/setupProxy.js Normal file
View file

@ -0,0 +1,10 @@
const proxy = require('http-proxy-middleware');
module.exports = function(app) {
app.use(proxy('/.netlify/functions/', {
target: 'http://localhost:9000/',
"pathRewrite": {
"^/\\.netlify/functions": ""
}
}));
};