mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: remove sentry env from code
This commit is contained in:
parent
9435e9cd52
commit
b62b488a0d
3 changed files with 10 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# The client ID you received from GitHub for your GitHub App.
|
||||
GITHUB_OAUTH_CLIENT_ID=GITHUB_OAUTH_CLIENT_ID
|
||||
|
||||
# The client secret you received from GitHub for your GitHub App.
|
||||
GITHUB_OAUTH_CLIENT_SECRET=GITHUB_OAUTH_CLIENT_SECRET
|
||||
|
||||
SENTRY_PUBLIC_KEY=SENTRY_PUBLIC_KEY
|
||||
SENTRY_PROJECT_ID=SENTRY_PROJECT_ID
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
import * as Sentry from '@sentry/browser'
|
||||
import { IN_PRODUCTION_MODE, VERSION } from 'env'
|
||||
import { IN_PRODUCTION_MODE, SENTRY, VERSION } from 'env'
|
||||
import { platform } from 'platforms'
|
||||
import { atomicAsyncFunction, forOf } from 'utils/general'
|
||||
import { storageHelper, storageKeys } from 'utils/storageHelper'
|
||||
|
||||
const PUBLIC_KEY = 'd22ec5c9cc874539a51c78388c12e3b0'
|
||||
const PROJECT_ID = '1406497'
|
||||
const { PUBLIC_KEY, PROJECT_ID } = SENTRY
|
||||
|
||||
const MAX_REPORT_COUNT = 10 // prevent error overflow
|
||||
let countReportedError = 0
|
||||
|
|
|
|||
|
|
@ -9,3 +9,8 @@ export const GITEE_OAUTH = {
|
|||
}
|
||||
|
||||
export const VERSION = process.env.VERSION
|
||||
|
||||
export const SENTRY = {
|
||||
PUBLIC_KEY: process.env.SENTRY_PUBLIC_KEY,
|
||||
PROJECT_ID: process.env.SENTRY_PROJECT_ID,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue