Skip to content

feat(analytics): add test environment config #6957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"STATIC_HOST": "https://icp0.io",
"FEATURE_FLAGS": {
"ENABLE_CKTESTBTC": false
},
"PLAUSIBLE_DOMAIN": "test.nns.ic0.app"
}
}
},
"beta": {
Expand All @@ -29,8 +28,7 @@
"STATIC_HOST": "https://icp0.io",
"FEATURE_FLAGS": {
"ENABLE_CKTESTBTC": false
},
"PLAUSIBLE_DOMAIN": "test.nns.ic0.app"
}
}
},
"devenv_llorenc": {
Expand Down Expand Up @@ -87,7 +85,8 @@
"OWN_CANISTER_ID": "qsgjb-riaaa-aaaaa-aaaga-cai",
"FEATURE_FLAGS": {
"ENABLE_CKTESTBTC": false
}
},
"PLAUSIBLE_DOMAIN": "nns-test"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/services/analytics.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const initAnalytics = () => {
tracker = Plausible({
domain,
hashMode: false,
// Change to true for local development and see traffic at https://plausible.io/test.nns.ic0.app/
// Change to true for local development and see traffic at https://plausible.io/nns-test
trackLocalhost: false,
});
};
Expand Down
1 change: 0 additions & 1 deletion scripts/nns-dapp/test-config-assets/app/arg.did
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
record{ 0="INDEX_CANISTER_ID"; 1="qhbym-qaaaa-aaaaa-aaafq-cai" };
record{ 0="LEDGER_CANISTER_ID"; 1="ryjl3-tyaaa-aaaaa-aaaba-cai" };
record{ 0="OWN_CANISTER_ID"; 1="xnjld-hqaaa-aaaal-qb56q-cai" };
record{ 0="PLAUSIBLE_DOMAIN"; 1="test.nns.ic0.app" };
record{ 0="ROBOTS"; 1="<meta name=\"robots\" content=\"noindex, nofollow\" />" };
record{ 0="SNS_AGGREGATOR_URL"; 1="https://otgyv-wyaaa-aaaak-qcgba-cai.icp0.io" };
record{ 0="STATIC_HOST"; 1="https://icp0.io" };
Expand Down
2 changes: 1 addition & 1 deletion scripts/nns-dapp/test-config-assets/app/env
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VITE_FEATURE_FLAGS="{\"DISABLE_IMPORT_TOKEN_VALIDATION_FOR_TESTING\":false,\"ENA
VITE_HOST=https://icp-api.io
VITE_IDENTITY_SERVICE_URL=https://identity.internetcomputer.org/
VITE_ICP_SWAP_URL=https://uvevg-iyaaa-aaaak-ac27q-cai.raw.ic0.app/
VITE_PLAUSIBLE_DOMAIN=test.nns.ic0.app
VITE_PLAUSIBLE_DOMAIN=
VITE_AGGREGATOR_CANISTER_URL=https://otgyv-wyaaa-aaaak-qcgba-cai.icp0.io
VITE_CKBTC_LEDGER_CANISTER_ID=mxzaz-hqaaa-aaaar-qaada-cai
VITE_CKBTC_MINTER_CANISTER_ID=mqygn-kiaaa-aaaar-qaadq-cai
Expand Down
Loading