File tree 6 files changed +406
-36
lines changed
6 files changed +406
-36
lines changed Original file line number Diff line number Diff line change 3
3
<header >
4
4
<nav >
5
5
<ul >
6
- <li ><NuxtLink to =" /test-param/1234" >About </NuxtLink ></li >
7
- <li ><NuxtLink to =" /catchAll/my-id-1337" >Post 1 </NuxtLink ></li >
6
+ <li ><NuxtLink to =" /test-param/1234" >Test Param </NuxtLink ></li >
7
+ <li ><NuxtLink to =" /catchAll/my-id-1337" >Catch All Route </NuxtLink ></li >
8
8
<li ><NuxtLink to =" /404" >404</NuxtLink ></li >
9
9
<li ><NuxtLink to =" /?middleware" >Faulty Router Middleware</NuxtLink ></li >
10
10
</ul >
Original file line number Diff line number Diff line change 1
- import * as Sentry from '@sentry/nuxt' ;
2
-
3
1
// https://nuxt.com/docs/api/configuration/nuxt-config
4
2
export default defineNuxtConfig ( {
5
3
devtools : { enabled : true } ,
6
- modules : [ '@sentry/nuxt' ] ,
7
-
8
- runtimeConfig : {
9
- public : {
10
- sentry : {
11
- dsn : '' /* DSN */ ,
12
- debug : true ,
13
- } ,
14
- } ,
15
- } ,
4
+ modules : [ '@sentry/nuxt/module' ] ,
5
+ debug : false ,
16
6
} ) ;
Original file line number Diff line number Diff line change 7
7
"dev" : " nuxt dev" ,
8
8
"generate" : " nuxt generate" ,
9
9
"preview" : " nuxt preview" ,
10
- "postinstall" : " nuxt prepare"
10
+ "postinstall" : " nuxt prepare" ,
11
+ "clean" : " npx nuxi cleanup"
11
12
},
12
13
"dependencies" : {
13
14
"@sentry/nuxt" : " file:.yalc/@sentry/nuxt" ,
Original file line number Diff line number Diff line change
1
+ import * as Sentry from '@sentry/nuxt' ;
2
+
3
+ Sentry . init ( {
4
+ dsn : 'your-dsn' ,
5
+ debug : true ,
6
+ tracesSampleRate : 1 ,
7
+ integrations : [ Sentry . browserTracingIntegration ( ) ] ,
8
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import * as Sentry from '@sentry/nuxt' ;
2
+
3
+ Sentry . init ( {
4
+ dsn : process . env . SENTRY_DSN ,
5
+ tracesSampleRate : 1 ,
6
+ debug : true ,
7
+ } ) ;
You can’t perform that action at this time.
0 commit comments