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

Separate Dev and Production for Sentry #184

Open
DeveloperKhan opened this issue Sep 20, 2021 · 0 comments
Open

Separate Dev and Production for Sentry #184

DeveloperKhan opened this issue Sep 20, 2021 · 0 comments
Assignees
Labels
refactor Change the code

Comments

@DeveloperKhan
Copy link
Collaborator

Difficulty

Medium (1-2 people)

Description

Currently all dev errors are showing up on our Sentry (bug reporting) page. Create a dev environment that would disable Sentry. To do this, first create a "dev" script in the package.json that works just like the "start" script but add an environment variable such as "DEVELOPMENT_MODE" or something.

Use this environment variable to disable the Sentry wrapper in SentryWrapper.tsx. So now if you start the project with npm run dev, Sentry will not be online.

Finally, update the README to suggest the new dev script instead of the start script.

@DeveloperKhan DeveloperKhan added the refactor Change the code label Sep 20, 2021
@Jz1116 Jz1116 self-assigned this Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Change the code
Projects
None yet
Development

No branches or pull requests

2 participants