add proxy for api in dev

so it works in codespaces
hopefully didn't break anything
This commit is contained in:
2022-06-02 15:58:44 +00:00
committed by Stepan Usatiuk
parent 453ce308d0
commit 66a2ef2260
3 changed files with 17 additions and 6 deletions

8
frontend/.proxyrc Normal file
View File

@@ -0,0 +1,8 @@
{
"/api": {
"target": "http://localhost:3000/",
"pathRewrite": {
"^/api": ""
}
}
}