Skip to content

Commit

Permalink
chore: rename env vars to begin with REACT_APP_
Browse files Browse the repository at this point in the history
  • Loading branch information
Jie Hao Kwa authored and Jie Hao Kwa committed Nov 26, 2020
1 parent 8197b67 commit 47cd1b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export REACT_APP_CLIENT_ID=''
export REACT_APP_BACKEND_URL=''
export SENTRY_ENV=''
export SENTRY_DSN=''
export REACT_APP_SENTRY_ENV=''
export REACT_APP_SENTRY_DSN=''
22 changes: 11 additions & 11 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import './styles/index.scss';
import 'sgds-govtech/css/sgds.css';
import App from './App';

if (process.env.ENV !== 'staging' || process.env.ENV !== 'production') {
Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: [
new Integrations.BrowserTracing(),
],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
if (process.env.REACT_APP_SENTRY_ENV === 'staging' || process.env.REACT_APP_SENTRY_ENV == 'production') {
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [
new Integrations.BrowserTracing(),
],

// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
}

ReactDOM.render(<App />, document.getElementById('root'));

0 comments on commit 47cd1b9

Please sign in to comment.