From 21f9dc2b1e9ddcbdc46effd679fc33eb39ac97ae Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Thu, 11 Jan 2024 17:32:31 +0600 Subject: [PATCH] chore: fix sentry vars --- .github/workflows/vercel.yml | 4 ++-- apps/explorer/.env.example | 5 ++--- apps/explorer/src/explorer/ExplorerApp.tsx | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/vercel.yml b/.github/workflows/vercel.yml index 6ae9c3ced4..8d4f90cce9 100644 --- a/.github/workflows/vercel.yml +++ b/.github/workflows/vercel.yml @@ -56,8 +56,8 @@ jobs: REACT_APP_WC_PROJECT_ID=${{ secrets.REACT_APP_WC_PROJECT_ID }} # Explorer env vars REACT_APP_IPFS_READ_URI=${{ secrets.REACT_APP_IPFS_READ_URI }} - REACT_APP_SENTRY_DSN=${{ secrets.SENTRY_DSN }} - REACT_APP_SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} + REACT_APP_EXPLORER_SENTRY_DSN=${{ secrets.EXPLORER_SENTRY_DSN }} + REACT_APP_EXPLORER_SENTRY_AUTH_TOKEN=${{ secrets.EXPLORER_SENTRY_AUTH_TOKEN }} REACT_APP_EXPLORER_GOOGLE_ANALYTICS_ID=${{ secrets.EXPLORER_GOOGLE_ANALYTICS_ID }} REACT_APP_SUBGRAPH_URL_MAINNET=${{ secrets.REACT_APP_SUBGRAPH_URL_MAINNET }} REACT_APP_SUBGRAPH_URL_GNOSIS_CHAIN=${{ secrets.REACT_APP_SUBGRAPH_URL_GNOSIS_CHAIN }} diff --git a/apps/explorer/.env.example b/apps/explorer/.env.example index e3bb230873..3f6f2d2784 100644 --- a/apps/explorer/.env.example +++ b/apps/explorer/.env.example @@ -8,9 +8,8 @@ AUTOCONNECT=true REACT_APP_IPFS_READ_URI=https://cloudflare-ipfs.com/ipfs # Sentry -#REACT_APP_SENTRY_DSN='https://' -#REACT_APP_SENTRY_TRACES_SAMPLE_RATE="1.0" -#REACT_APP_SENTRY_AUTH_TOKEN='' +#REACT_APP_EXPLORER_SENTRY_DSN='https://' +#REACT_APP_EXPLORER_SENTRY_AUTH_TOKEN='' # Orderbook API Endpoints #REACT_APP_ORDER_BOOK_URLS='{"1":"https://YOUR_HOST","100":"https://YOUR_HOST","5":"https://YOUR_HOST"} diff --git a/apps/explorer/src/explorer/ExplorerApp.tsx b/apps/explorer/src/explorer/ExplorerApp.tsx index a70f1c7708..94224e663c 100644 --- a/apps/explorer/src/explorer/ExplorerApp.tsx +++ b/apps/explorer/src/explorer/ExplorerApp.tsx @@ -18,7 +18,7 @@ import { NetworkUpdater } from '../state/network/NetworkUpdater' import { NETWORK_OPTIONS } from '../consts/network' import { RedirectMainnet, RedirectXdai } from '../state/network' -const SENTRY_DSN = process.env.REACT_APP_SENTRY_DSN +const SENTRY_DSN = process.env.REACT_APP_EXPLORER_SENTRY_DSN const SENTRY_TRACES_SAMPLE_RATE = process.env.REACT_APP_SENTRY_TRACES_SAMPLE_RATE if (SENTRY_DSN) {