Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Alex
next.js
Commits
39e240bc
Unverified
Commit
39e240bc
authored
Mar 13, 2023
by
JJ Kasper
Committed by
GitHub
Mar 13, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'canary' into jrl-next-crates
parents
8ae2df0f
7457be0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
package.json
examples/with-sentry/package.json
+1
-1
sentry.edge.config.js
examples/with-sentry/sentry.edge.config.js
+15
-0
No files found.
examples/with-sentry/package.json
View file @
39e240bc
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"start"
:
"next start"
"start"
:
"next start"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@sentry/nextjs"
:
"^7.
6
.0"
,
"@sentry/nextjs"
:
"^7.
30
.0"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^18.2.0"
,
"react"
:
"^18.2.0"
,
"react-dom"
:
"^18.2.0"
"react-dom"
:
"^18.2.0"
...
...
examples/with-sentry/sentry.edge.config.js
0 → 100644
View file @
39e240bc
// This file configures the initialization of Sentry on the browser.
// The config you add here will be used whenever a page is visited.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import
*
as
Sentry
from
'@sentry/nextjs'
const
SENTRY_DSN
=
process
.
env
.
SENTRY_DSN
||
process
.
env
.
NEXT_PUBLIC_SENTRY_DSN
Sentry
.
init
({
dsn
:
SENTRY_DSN
,
tracesSampleRate
:
1.0
,
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
})
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