diff --git a/package.json b/package.json index fb59ce6..ec29ac6 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "scripts": { "ng": "ng", "start": "ng serve --proxy-config proxy.config.local.json ", + "start:prod": "ng serve --proxy-config proxy.config.prod.json ", "build": "ng build --configuration=production", "watch": "ng build --watch --configuration development", "test": "ng test", diff --git a/proxy.config.prod.json b/proxy.config.prod.json new file mode 100644 index 0000000..624f74c --- /dev/null +++ b/proxy.config.prod.json @@ -0,0 +1,11 @@ +{ + "/api/*": { + "target": "http://public-pool.airdns.org:40557", + "secure": false, + "logLevel": "debug", + "pathRewrite": { + "^/api": "" + }, + "changeOrigin": true + } +} \ No newline at end of file diff --git a/src/app/components/dashboard/dashboard.component.html b/src/app/components/dashboard/dashboard.component.html index 8b8a1fc..baa5bb6 100644 --- a/src/app/components/dashboard/dashboard.component.html +++ b/src/app/components/dashboard/dashboard.component.html @@ -4,7 +4,7 @@