add proxy for angulars development server
This commit is contained in:
@@ -67,7 +67,8 @@
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "pdb:build"
|
||||
"browserTarget": "pdb:build",
|
||||
"proxyConfig": "proxy.conf.json"
|
||||
},
|
||||
"configurations": {
|
||||
"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