Upgrade to Create-React-App 2
This commit is contained in:
parent
895c86b61a
commit
397f8281a0
3 changed files with 9413 additions and 4726 deletions
10
src/setupProxy.js
Normal file
10
src/setupProxy.js
Normal 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": ""
|
||||
}
|
||||
}));
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue