-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
import React from 'react' | ||
import ReactDom from 'react-dom' | ||
import * as Sentry from '@sentry/browser'; | ||
import { App } from './demo' | ||
|
||
ReactDom.render(<App/>, document.getElementById('app')) | ||
/** | ||
* 注册链接https://sentry.io/welcome/ | ||
* 生成一个DSN串。 DSN是链接我们要上报的项目和sentry服务端的钥匙。 | ||
* */ | ||
const dsn = ''; | ||
dsn && Sentry.init({ | ||
dsn | ||
}); | ||
|
||
ReactDom.render(<App/>, document.getElementById('app')); |