Skip to content

Commit

Permalink
fix: get SENTRY_DSN from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Dec 6, 2023
1 parent 87ce8eb commit f9d42e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const COOKIES_PARAMS = { path: '/', domain: COOKIES_DOMAIN };

export const ROLLBAR_TOKEN = process.env.REACT_APP_ROLLBAR_TOKEN;

export const SENTRY_DSN = process.env.SENTRY_DSN;

setAPIConfig({
terrasoAPIURL: TERRASO_API_URL,
graphQLEndpoint: GRAPHQL_ENDPOINT,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import 'index.css';
import App from 'App';

Sentry.init({
dsn: 'https://dac0c436847fc922e68de0855b5ff738@o4506299756642304.ingest.sentry.io/4506345074130944',
dsn: config.SENTRY_DSN,

Check failure on line 36 in src/index.js

View workflow job for this annotation

GitHub Actions / lint

'config' is not defined
integrations: [
new Sentry.BrowserTracing({
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
Expand Down

0 comments on commit f9d42e4

Please sign in to comment.