Added proxy to React client

It allows React to fetch data from Express backend (at localhost:3001).
This commit is contained in:
Maciej Krzyżanowski 2023-02-26 16:51:27 +01:00
parent 32cb76d18c
commit ca7c2a9542

View File

@ -25,6 +25,7 @@
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"proxy": "http://localhost:3001",
"browserslist": { "browserslist": {
"production": [ "production": [
">0.2%", ">0.2%",