File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
- # The client ID you received from GitHub for your GitHub App.
2
1
GITHUB_OAUTH_CLIENT_ID = GITHUB_OAUTH_CLIENT_ID
3
-
4
- # The client secret you received from GitHub for your GitHub App.
5
2
GITHUB_OAUTH_CLIENT_SECRET = GITHUB_OAUTH_CLIENT_SECRET
3
+
4
+ SENTRY_PUBLIC_KEY = SENTRY_PUBLIC_KEY
5
+ SENTRY_PROJECT_ID = SENTRY_PROJECT_ID
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser'
2
- import { IN_PRODUCTION_MODE , VERSION } from 'env'
2
+ import { IN_PRODUCTION_MODE , SENTRY , VERSION } from 'env'
3
3
import { platform } from 'platforms'
4
4
import { atomicAsyncFunction , forOf } from 'utils/general'
5
5
import { storageHelper , storageKeys } from 'utils/storageHelper'
6
6
7
- const PUBLIC_KEY = 'd22ec5c9cc874539a51c78388c12e3b0'
8
- const PROJECT_ID = '1406497'
7
+ const { PUBLIC_KEY , PROJECT_ID } = SENTRY
9
8
10
9
const MAX_REPORT_COUNT = 10 // prevent error overflow
11
10
let countReportedError = 0
Original file line number Diff line number Diff line change @@ -9,3 +9,8 @@ export const GITEE_OAUTH = {
9
9
}
10
10
11
11
export const VERSION = process . env . VERSION
12
+
13
+ export const SENTRY = {
14
+ PUBLIC_KEY : process . env . SENTRY_PUBLIC_KEY ,
15
+ PROJECT_ID : process . env . SENTRY_PROJECT_ID ,
16
+ }
You can’t perform that action at this time.
0 commit comments