diff --git a/package.json b/package.json index 4724df6..a003956 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "ng": "ng", "start": "ng serve --proxy-config proxy.config.local.json ", "build": "ng build --configuration=production && gzipper compress --gzip --brotli ./dist/public-pool-ui/", + "start:prod": "ng serve --proxy-config proxy.config.prod.json ", "watch": "ng build --watch --configuration development", "test": "ng test", "bundle-report": "ng build --configuration=production --source-map=true --named-chunks=true --stats-json && webpack-bundle-analyzer dist/public-pool-ui/stats.json" 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 @@