Clarify
This commit is contained in:
+3
-3
@@ -9,9 +9,9 @@ import * as info from 'expo-updates'
|
|||||||
import {init} from 'sentry-expo'
|
import {init} from 'sentry-expo'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Matches the build profiles from `eas.json`
|
* Matches the build profile `channel` props in `eas.json`
|
||||||
*/
|
*/
|
||||||
const buildProfile = (info.channel || 'development') as
|
const buildChannel = (info.channel || 'development') as
|
||||||
| 'development'
|
| 'development'
|
||||||
| 'preview'
|
| 'preview'
|
||||||
| 'production'
|
| 'production'
|
||||||
@@ -27,6 +27,6 @@ init({
|
|||||||
dsn: 'https://05bc3789bf994b81bd7ce20c86ccd3ae@o4505071687041024.ingest.sentry.io/4505071690514432',
|
dsn: 'https://05bc3789bf994b81bd7ce20c86ccd3ae@o4505071687041024.ingest.sentry.io/4505071690514432',
|
||||||
debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production
|
debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production
|
||||||
enableInExpoDevelopment: true,
|
enableInExpoDevelopment: true,
|
||||||
environment: buildProfile,
|
environment: buildChannel,
|
||||||
dist: appVersion,
|
dist: appVersion,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user