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
82f94b80
Commit
82f94b80
authored
Sep 06, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add preview env
parent
fd0fbe8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
sentry.client.config.js
sentry.client.config.js
+2
-0
sentry.server.config.js
sentry.server.config.js
+2
-0
No files found.
sentry.client.config.js
View file @
82f94b80
...
...
@@ -5,8 +5,10 @@
import
*
as
Sentry
from
'
@sentry/nextjs
'
;
const
SENTRY_DSN
=
process
.
env
.
SENTRY_DSN
||
process
.
env
.
NEXT_PUBLIC_SENTRY_DSN
;
const
ENV
=
process
.
env
.
NEXT_PUBLIC_VERCEL_ENV
||
process
.
env
.
NODE_ENV
;
Sentry
.
init
({
environment
:
ENV
,
dsn
:
SENTRY_DSN
,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate
:
1.0
,
...
...
sentry.server.config.js
View file @
82f94b80
...
...
@@ -5,8 +5,10 @@
import
*
as
Sentry
from
'
@sentry/nextjs
'
;
const
SENTRY_DSN
=
process
.
env
.
SENTRY_DSN
||
process
.
env
.
NEXT_PUBLIC_SENTRY_DSN
;
const
ENV
=
process
.
env
.
VERCEL_ENV
||
process
.
env
.
NODE_ENV
;
Sentry
.
init
({
environment
:
ENV
,
dsn
:
SENTRY_DSN
,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate
:
1.0
,
...
...
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