GTBitsOfGood / GTBitsOfGood/MapScout

Separate Dev and Production for Sentry

Open
#184 0 comments 0 reactions 1 assignee Claimed by @Jz1116 View on GitHub
refactor
Dominant language
TypeScript
Stars
13
Forks
4
PR merge metrics
No merged PRs in 30d

Description

### 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.