Skip to content
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

refactor(console): add env vars for sentry #374

Merged
merged 4 commits into from
Sep 18, 2024
Merged
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
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
Loading