Provide Sentry token to Sentry API through env variable

This commit is contained in:
Wojciech Adaszynski
2020-05-18 11:30:02 +02:00
parent 3d4249b673
commit 807febae5a
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import { MockSentryApi } from './mock-api';
import { ProductionSentryApi } from './production-api';
export function sentryApiFactory(organization: string): SentryApi {
if (process.env.NODE_ENV === 'production') {
if (process.env.NODE_ENV !== 'production') {
return new ProductionSentryApi(organization);
}
return new MockSentryApi();