From 00b9cc6dc699ef43c5e8da537b68e44c1678b000 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sun, 21 Jun 2020 09:10:53 +0200 Subject: [PATCH] add proxy for angulars development server --- pdb-js/angular.json | 3 ++- pdb-js/proxy.conf.json | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 pdb-js/proxy.conf.json 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