added proxying so hot reload can work on ng serve.
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -136,4 +137,4 @@
|
|||||||
"prefix": "app"
|
"prefix": "app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6
src/proxy.conf.json
Normal file
6
src/proxy.conf.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"/api": {
|
||||||
|
"target": "http://localhost:3000/",
|
||||||
|
"secure": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user