diff --git a/pdb-js/angular.json b/pdb-js/angular.json index 5ce3419..2589238 100644 --- a/pdb-js/angular.json +++ b/pdb-js/angular.json @@ -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": { diff --git a/pdb-js/proxy.conf.json b/pdb-js/proxy.conf.json new file mode 100644 index 0000000..1ca7695 --- /dev/null +++ b/pdb-js/proxy.conf.json @@ -0,0 +1,9 @@ +{ + "/": { + "target": "http://localhost:17333", + "secure": false, + "pathRewrite": {"^/foobar" : ""}, + "changeOrigin": true, + "logLevel": "debug" + } +} \ No newline at end of file