1
0

added proxying so hot reload can work on ng serve.

This commit is contained in:
Anthony Sgueglia
2020-03-25 13:24:12 -04:00
parent e9f26ff6ae
commit 8d8e4a21e3
2 changed files with 9 additions and 2 deletions

View File

@@ -59,7 +59,8 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "rock-paper-scissors:build:production" "browserTarget": "rock-paper-scissors:build:production",
"proxyConfig": "src/proxy.conf.json"
} }
} }
}, },

6
src/proxy.conf.json Normal file
View File

@@ -0,0 +1,6 @@
{
"/api": {
"target": "http://localhost:3000/",
"secure": false
}
}