Skip to content

Commit

Permalink
refactor(console): add env vars for sentry (#374)
Browse files Browse the repository at this point in the history
Co-authored-by: Maxime Cyr <[email protected]>
  • Loading branch information
baktun14 and Redm4x authored Sep 18, 2024
1 parent a7d4873 commit 94bc07e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
6 changes: 5 additions & 1 deletion apps/deploy-web/env/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
AUTH0_AUDIENCE=https://api.cloudmos.io
AUTH0_SCOPE=openid profile email offline_access
AUTH0_SCOPE=openid profile email offline_access

NEXT_PUBLIC_SENTRY_DSN="https://[email protected]/4504656428204032"
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID="2b2b3e1d953d33bd3b3e2c864edd2dea"
NEXT_PUBLIC_SENTRY_APPLICATION_KEY="AKASH-CONSOLE-WEB"
5 changes: 4 additions & 1 deletion apps/deploy-web/env/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL

BASE_API_MAINNET_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL
BASE_API_TESTNET_URL=$NEXT_PUBLIC_BASE_API_TESTNET_URL
BASE_API_SANDBOX_URL=$NEXT_PUBLIC_BASE_API_SANDBOX_URL
BASE_API_SANDBOX_URL=$NEXT_PUBLIC_BASE_API_SANDBOX_URL

NEXT_PUBLIC_SENTRY_ENABLED="true"
NEXT_PUBLIC_GA_MEASUREMENT_ID="G-LFRGN2J2RV"
4 changes: 3 additions & 1 deletion apps/deploy-web/env/.env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL

BASE_API_MAINNET_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL
BASE_API_TESTNET_URL=$NEXT_PUBLIC_BASE_API_TESTNET_URL
BASE_API_SANDBOX_URL=$NEXT_PUBLIC_BASE_API_SANDBOX_URL
BASE_API_SANDBOX_URL=$NEXT_PUBLIC_BASE_API_SANDBOX_URL

NEXT_PUBLIC_SENTRY_ENABLED="true"
3 changes: 1 addition & 2 deletions apps/deploy-web/sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Sentry.init({
dsn: SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0.01,
serverName: process.env.NEXT_PUBLIC_SENTRY_SERVER_NAME,
enabled: process.env.NODE_ENV === "production",
enabled: process.env.NEXT_PUBLIC_SENTRY_ENABLED === "true",
integrations: [
Sentry.thirdPartyErrorFilterIntegration({
filterKeys: [process.env.NEXT_PUBLIC_SENTRY_APPLICATION_KEY],
Expand Down
3 changes: 1 addition & 2 deletions apps/deploy-web/sentry.edge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Sentry.init({
dsn: SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0.01,
serverName: process.env.NEXT_PUBLIC_SENTRY_SERVER_NAME,
enabled: process.env.NODE_ENV === "production",
enabled: process.env.NEXT_PUBLIC_SENTRY_ENABLED === "true",
integrations: [
Sentry.thirdPartyErrorFilterIntegration({
filterKeys: [process.env.NEXT_PUBLIC_SENTRY_APPLICATION_KEY],
Expand Down
3 changes: 1 addition & 2 deletions apps/deploy-web/sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Sentry.init({
dsn: SENTRY_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0.01,
serverName: process.env.NEXT_PUBLIC_SENTRY_SERVER_NAME,
enabled: process.env.NODE_ENV === "production",
enabled: process.env.NEXT_PUBLIC_SENTRY_ENABLED === "true",
integrations: [
Sentry.thirdPartyErrorFilterIntegration({
filterKeys: [process.env.NEXT_PUBLIC_SENTRY_APPLICATION_KEY],
Expand Down

0 comments on commit 94bc07e

Please sign in to comment.