add proxy for angulars development server
This commit is contained in:
@@ -67,7 +67,8 @@
|
|||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "pdb:build"
|
"browserTarget": "pdb:build",
|
||||||
|
"proxyConfig": "proxy.conf.json"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
|
|||||||
9
pdb-js/proxy.conf.json
Normal file
9
pdb-js/proxy.conf.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"/": {
|
||||||
|
"target": "http://localhost:17333",
|
||||||
|
"secure": false,
|
||||||
|
"pathRewrite": {"^/foobar" : ""},
|
||||||
|
"changeOrigin": true,
|
||||||
|
"logLevel": "debug"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user