diff --git a/goofy-client/angular.json b/goofy-client/angular.json index eb185113ff51be77ae29cbaf1ebb59ea1d8ecf5e..e09e52b2f51222a2effe8ede14c35e175210fc70 100644 --- a/goofy-client/angular.json +++ b/goofy-client/angular.json @@ -378,7 +378,8 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "browserTarget": "goofy:build" + "browserTarget": "goofy:build", + "proxyConfig": "proxy.conf.mjs" }, "configurations": { "production": { diff --git a/goofy-client/package.json b/goofy-client/package.json index 07cdf1fc534f9dd4e9b761320f568caf06207b94..841492de89be0aaf7cc9ba8551bbee9616413137 100644 --- a/goofy-client/package.json +++ b/goofy-client/package.json @@ -4,8 +4,8 @@ "license": "MIT", "scripts": { "postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2020 browser module main --first-only --create-ivy-entry-points", - "start": "nx serve --port 4300 --disable-host-check --proxy-config proxy.conf.json --verbose", - "start-for-screenreader": "nx serve --host 192.168.178.20 --port 4300 --disable-host-check --proxy-config proxy.conf.json --verbose", + "start": "nx serve --port 4300 --disable-host-check --verbose", + "start-for-screenreader": "nx serve --host 192.168.178.20 --port 4300 --disable-host-check --verbose", "start:devbe": "nx serve --port 4300 --disable-host-check --proxy-config proxy.dev.conf.json --verbose", "build": "nx build", "test": "node ./node_modules/.bin/nx run-many --target=test --all --parallel --maxParallel 8 --runInBand", diff --git a/goofy-client/proxy.conf.json b/goofy-client/proxy.conf.mjs similarity index 90% rename from goofy-client/proxy.conf.json rename to goofy-client/proxy.conf.mjs index 4c42232fa9fca8da22865bf488e54eb3cb7f2ea0..c16495c509a13c80f13d7e9ad8a073b9f6ab0b07 100644 --- a/goofy-client/proxy.conf.json +++ b/goofy-client/proxy.conf.mjs @@ -1,4 +1,4 @@ -[ +export default [ { "context": [ "/api", @@ -12,4 +12,4 @@ "secure": false, "logLevel": "debug" } -] \ No newline at end of file +]; \ No newline at end of file