Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
b5911006
Commit
b5911006
authored
Jun 16, 2023
by
徐光星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整sentry配置
parent
dfa9fa25
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
.sentryclirc.js
.sentryclirc.js
+2
-1
main.js
src/main.js
+2
-2
vue.config.js
vue.config.js
+2
-1
No files found.
.sentryclirc.js
View file @
b5911006
const
crypto
=
require
(
'
crypto
'
);
const
crypto
=
require
(
'
crypto
'
);
const
pkgInfo
=
require
(
'
./package.json
'
);
const
pkgInfo
=
require
(
'
./package.json
'
);
const
project
=
pkgInfo
.
name
;
const
project
=
pkgInfo
.
name
;
const
VERSION
=
process
.
env
.
GIT_VERSION
||
'
1.0.0
'
const
hashName
=
crypto
const
hashName
=
crypto
.
createHash
(
'
md5
'
)
.
createHash
(
'
md5
'
)
.
update
(
project
)
.
update
(
project
)
...
@@ -12,7 +13,7 @@ module.exports = {
...
@@ -12,7 +13,7 @@ module.exports = {
project
,
project
,
authToken
:
'
3f1f6f3789594e3a81280c1cd8d4d1008037a7abad714698b60b6f358c3d7562
'
,
authToken
:
'
3f1f6f3789594e3a81280c1cd8d4d1008037a7abad714698b60b6f358c3d7562
'
,
url
:
'
http://newsentry.quantgroups.com
'
,
url
:
'
http://newsentry.quantgroups.com
'
,
release
:
`
${
project
}
@
1.0.0
`
,
release
:
`
${
project
}
@
${
VERSION
}
`
,
ignore
:
[
'
node_modules
'
,
'
tests
'
],
ignore
:
[
'
node_modules
'
,
'
tests
'
],
silent
:
true
,
silent
:
true
,
include
:
[
include
:
[
...
...
src/main.js
View file @
b5911006
...
@@ -11,11 +11,11 @@ import Bridge from '@qg/js-bridge';
...
@@ -11,11 +11,11 @@ import Bridge from '@qg/js-bridge';
import
{
init
as
sentryInit
}
from
'
@sentry/vue
'
;
import
{
init
as
sentryInit
}
from
'
@sentry/vue
'
;
import
lazyload
from
'
@qg/cherry-ui/src/lazyload/index
'
;
import
lazyload
from
'
@qg/cherry-ui/src/lazyload/index
'
;
import
'
intersection-observer
'
;
import
'
intersection-observer
'
;
if
(
process
.
env
.
SENTRY_ENV
!==
'
test
'
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
if
(
process
.
env
.
SENTRY_ENV
===
'
prod
'
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
sentryInit
({
sentryInit
({
Vue
,
Vue
,
dsn
:
'
https://d36508238b7c4e5fa8306948b52948e1@sentry.q-gp.com/11
'
,
// 项目设置中的Client Keys
dsn
:
'
https://d36508238b7c4e5fa8306948b52948e1@sentry.q-gp.com/11
'
,
// 项目设置中的Client Keys
release
:
'
group-buy-ui@1.0.0
'
,
// 项目名加版本号
release
:
`group-buy-ui@
${
process
.
env
.
GIT_VERSION
||
'
1.0.0
'
}
`
,
// 项目名加版本号
tracesSampleRate
:
0.5
,
// 上报频率, 1最大, 0最小, 建议验证设置为1, 项目运行根据情况降低频率
tracesSampleRate
:
0.5
,
// 上报频率, 1最大, 0最小, 建议验证设置为1, 项目运行根据情况降低频率
environment
:
process
.
env
.
NODE_ENV
environment
:
process
.
env
.
NODE_ENV
});
});
...
...
vue.config.js
View file @
b5911006
...
@@ -141,7 +141,8 @@ module.exports = {
...
@@ -141,7 +141,8 @@ module.exports = {
plugins
:
[
plugins
:
[
new
SentryPlugin
(
SentryConfig
),
new
SentryPlugin
(
SentryConfig
),
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'
process.env.SENTRY_ENV
'
:
`"
${
process
.
env
.
SENTRY_ENV
||
''
}
"`
'
process.env.SENTRY_ENV
'
:
`"
${
process
.
env
.
SENTRY_ENV
||
''
}
"`
,
'
process.env.GIT_VERSION
'
:
`"
${
process
.
env
.
GIT_VERSION
||
''
}
"`
}),
}),
new
WebpackCosCdnUploadPlugin
()
new
WebpackCosCdnUploadPlugin
()
]
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment