From 75856975caab2165cfe2e648d2838163043d3b29 Mon Sep 17 00:00:00 2001 From: Edd Date: Fri, 1 Apr 2022 14:57:30 +0100 Subject: [PATCH 1/2] Try to make stats default to mainnet using NX env --- apps/stats/.env | 3 +++ apps/stats/.env.mainnet | 5 ++--- apps/stats/project.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 apps/stats/.env diff --git a/apps/stats/.env b/apps/stats/.env new file mode 100644 index 000000000..55d4d65ea --- /dev/null +++ b/apps/stats/.env @@ -0,0 +1,3 @@ +# App configuration variables +NX_VEGA_ENV = 'MAINNET' +NX_VEGA_REST = 'https://api.token.vega.xyz/' diff --git a/apps/stats/.env.mainnet b/apps/stats/.env.mainnet index 55d4d65ea..fc3046d0e 100644 --- a/apps/stats/.env.mainnet +++ b/apps/stats/.env.mainnet @@ -1,3 +1,2 @@ -# App configuration variables -NX_VEGA_ENV = 'MAINNET' -NX_VEGA_REST = 'https://api.token.vega.xyz/' +# App configuration variables. No overrides for default urls +PUBLIC_URL=. diff --git a/apps/stats/project.json b/apps/stats/project.json index 00ed1918a..d7ed12db6 100644 --- a/apps/stats/project.json +++ b/apps/stats/project.json @@ -11,7 +11,6 @@ "compiler": "babel", "outputPath": "dist/apps/stats", "index": "apps/stats/src/index.html", - "baseHref": "/", "main": "apps/stats/src/main.tsx", "polyfills": "apps/stats/src/polyfills.ts", "tsConfig": "apps/stats/tsconfig.app.json", @@ -31,6 +30,7 @@ "with": "apps/stats/src/environments/environment.prod.ts" } ], + "subresourceIntegrity": true, "optimization": true, "outputHashing": "all", "sourceMap": false, From f5b205638534e6968bf8829405b213da9a1aa8c4 Mon Sep 17 00:00:00 2001 From: Edd Date: Fri, 1 Apr 2022 15:02:13 +0100 Subject: [PATCH 2/2] Remove redundant baseHref --- apps/stats/.env.mainnet | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/stats/.env.mainnet b/apps/stats/.env.mainnet index fc3046d0e..1d34ab55b 100644 --- a/apps/stats/.env.mainnet +++ b/apps/stats/.env.mainnet @@ -1,2 +1 @@ # App configuration variables. No overrides for default urls -PUBLIC_URL=.