Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
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
vicotor
frontend
Commits
12967209
Commit
12967209
authored
Nov 16, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] public source maps
parent
496858d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
upload-source-maps.yml
.github/workflows/upload-source-maps.yml
+0
-1
config.ts
lib/sentry/config.ts
+2
-2
next.config.js
next.config.js
+1
-1
No files found.
.github/workflows/upload-source-maps.yml
View file @
12967209
...
@@ -40,7 +40,6 @@ jobs:
...
@@ -40,7 +40,6 @@ jobs:
run
:
yarn build
run
:
yarn build
env
:
env
:
NODE_ENV
:
production
NODE_ENV
:
production
GENERATE_SOURCEMAPS
:
true
-
name
:
Inject Sentry debug ID
-
name
:
Inject Sentry debug ID
run
:
yarn sentry-cli sourcemaps inject ./.next
run
:
yarn sentry-cli sourcemaps inject ./.next
...
...
lib/sentry/config.ts
View file @
12967209
...
@@ -10,11 +10,11 @@ export const config: Sentry.BrowserOptions | undefined = (() => {
...
@@ -10,11 +10,11 @@ export const config: Sentry.BrowserOptions | undefined = (() => {
}
}
const
tracesSampleRate
:
number
|
undefined
=
(()
=>
{
const
tracesSampleRate
:
number
|
undefined
=
(()
=>
{
if
(
feature
.
environment
===
'
staging
'
)
{
if
(
feature
.
environment
===
'
staging
'
||
feature
.
environment
===
'
development
'
)
{
return
1
;
return
1
;
}
}
if
(
feature
.
environment
===
'
production
'
&&
feature
.
instance
===
'
eth
'
)
{
if
(
feature
.
environment
===
'
production
'
)
{
return
0.2
;
return
0.2
;
}
}
})();
})();
...
...
next.config.js
View file @
12967209
...
@@ -42,7 +42,7 @@ const moduleExports = {
...
@@ -42,7 +42,7 @@ const moduleExports = {
redirects
,
redirects
,
headers
,
headers
,
output
:
'
standalone
'
,
output
:
'
standalone
'
,
productionBrowserSourceMaps
:
process
.
env
.
GENERATE_SOURCEMAPS
===
'
true
'
,
productionBrowserSourceMaps
:
true
,
experimental
:
{
experimental
:
{
instrumentationHook
:
true
,
instrumentationHook
:
true
,
},
},
...
...
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