1
1
import Head from 'next/head' ;
2
- import Image from 'next/image' ;
3
- import { Inter } from '@next/font/google' ;
4
-
5
- const inter = Inter ( { subsets : [ 'latin' ] } ) ;
2
+ import Link from 'next/link' ;
3
+ import * as Sentry from '@sentry/nextjs' ;
6
4
7
5
export default function Home ( ) {
8
6
return (
@@ -11,69 +9,21 @@ export default function Home() {
11
9
< title > Create Next App</ title >
12
10
< meta name = "description" content = "Generated by create next app" />
13
11
< meta name = "viewport" content = "width=device-width, initial-scale=1" />
12
+ < link rel = "icon" href = "/favicon.ico" />
14
13
</ Head >
15
14
< main >
16
- < div >
17
- < p >
18
- Get started by editing
19
- < code > pages/index.tsx</ code >
20
- </ p >
21
- < div >
22
- < a
23
- href = "https://vercel.com?utm_source=create-next-app& utm_medium = default - template & utm_campaign = create - next - app "
24
- target = "_blank"
25
- rel = "noopener noreferrer"
26
- >
27
- By{ ' ' }
28
- </ a >
29
- </ div >
30
- </ div >
31
-
32
- < div >
33
- < a
34
- href = "https://nextjs.org/docs?utm_source=create-next-app& utm_medium = default - template & utm_campaign = create - next - app "
35
- target = "_blank"
36
- rel = "noopener noreferrer"
37
- >
38
- < h2 >
39
- Docs < span > -></ span >
40
- </ h2 >
41
- < p > Find in-depth information about Next.js features and API.</ p >
42
- </ a >
43
-
44
- < a
45
- href = "https://nextjs.org/learn?utm_source=create-next-app& utm_medium = default - template & utm_campaign = create - next - app "
46
- target = "_blank"
47
- rel = "noopener noreferrer"
48
- >
49
- < h2 >
50
- Learn < span > -></ span >
51
- </ h2 >
52
- < p > Learn about Next.js in an interactive course with quizzes!</ p >
53
- </ a >
54
-
55
- < a
56
- href = "https://vercel.com/templates?framework=next.js& utm_source = create - next - app & utm_medium = default - template & utm_campaign = create - next - app "
57
- target = "_blank"
58
- rel = "noopener noreferrer"
59
- >
60
- < h2 >
61
- Templates < span > -></ span >
62
- </ h2 >
63
- < p > Discover and deploy boilerplate example Next.js projects.</ p >
64
- </ a >
65
-
66
- < a
67
- href = "https://vercel.com/new?utm_source=create-next-app& utm_medium = default - template & utm_campaign = create - next - app "
68
- target = "_blank"
69
- rel = "noopener noreferrer"
70
- >
71
- < h2 >
72
- Deploy < span > -></ span >
73
- </ h2 >
74
- < p > Instantly deploy your Next.js site to a shareable URL with Vercel.</ p >
75
- </ a >
76
- </ div >
15
+ < input
16
+ type = "button"
17
+ value = "Capture Exception"
18
+ id = "exception-button"
19
+ onClick = { ( ) => {
20
+ const eventId = Sentry . captureException ( new Error ( 'I am an error!' ) ) ;
21
+ window . capturedExceptionId = eventId ;
22
+ } }
23
+ />
24
+ < Link href = "/user/5" id = "navigation" >
25
+ navigate
26
+ </ Link >
77
27
</ main >
78
28
</ >
79
29
) ;
0 commit comments