From c40fd74dbec82d6087b68d91a2f3fa057a0e49da Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Tue, 21 Jun 2022 19:42:50 +0100 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20set=20logger=20node?= =?UTF-8?q?=20env=20env=20var=20in=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/env.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config/env.ts b/src/config/env.ts index 95d32cc1..c017acae 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -14,6 +14,7 @@ type ConfigParams = { marketplaceCanisterId: string; wICPCanisterId: string; capRouterId: string; + logsAppToken: string; }; type Config = { @@ -23,6 +24,8 @@ type Config = { test: ConfigParams; }; +const logsAppToken = process.env.REACT_APP_LOGS_APP_TOKEN || ''; + const config: Config = { // The production version production: { @@ -33,6 +36,7 @@ const config: Config = { marketplaceCanisterId: 'getti-aiaaa-aaaah-abkkq-cai', wICPCanisterId: 'utozz-siaaa-aaaam-qaaxq-cai', capRouterId: 'lj532-6iaaa-aaaah-qcc7a-cai', + logsAppToken, }, // Staging (serverless, local-replica) // Is similar to the process we have for local development @@ -46,6 +50,7 @@ const config: Config = { marketplaceCanisterId: 'rdmx6-jaaaa-aaaaa-aaadq-cai', wICPCanisterId: 'qaa6y-5yaaa-aaaaa-aaafa-cai', capRouterId: 'rrkah-fqaaa-aaaaa-aaaaq-cai', + logsAppToken, }, // Mainnet test environment // Provides the Service Canisters published to the Mainnet @@ -60,6 +65,7 @@ const config: Config = { marketplaceCanisterId: 'o3ios-jaaaa-aaaag-qakqq-cai', wICPCanisterId: 'utozz-siaaa-aaaam-qaaxq-cai', capRouterId: 'lj532-6iaaa-aaaah-qcc7a-cai', + logsAppToken, }, // The local development environment settings development: { @@ -70,6 +76,7 @@ const config: Config = { marketplaceCanisterId: 'rdmx6-jaaaa-aaaaa-aaadq-cai', wICPCanisterId: 'qaa6y-5yaaa-aaaaa-aaafa-cai', capRouterId: 'rrkah-fqaaa-aaaaa-aaaaq-cai', + logsAppToken, }, }; From bf356f888a1d05f7ddfe6a2d7946645456b0462f Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Tue, 21 Jun 2022 19:52:33 +0100 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20init=20lib=20in=20i?= =?UTF-8?q?ndex.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/index.html b/public/index.html index 05d108fa..8465f1d4 100644 --- a/public/index.html +++ b/public/index.html @@ -66,6 +66,11 @@ data-domain="app.jelly.xyz" src="https://plausible.io/js/plausible.js" > +