☒ Sentry can be initialized without blank connection details. When this is the case, it simply doesnt send exceptions to the sentry instance. Therefore, when compiling your JS frontend, only include Sentry details when pushing to prod, else leave it blank.
That being said - sentry in dev is useful for the breadcumbs when figuring out what led to a crash. To cut out the noise, you can filter events on environment, so that you only see production. The filter bar for environments is the top middle filter.