-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathindex.js
57 lines (54 loc) · 1.59 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import Head from 'next/head'
import Link from 'next/link'
import styles from '../styles/Home.module.css'
export default function Home() {
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1>
<p>
<Link href="/shows/rewriteme">Rewrite URL</Link>
</p>
<p>
<Link href="/shows/rewrite-absolute">Rewrite to absolute URL</Link>
</p>
<p>
<Link href="/shows/rewrite-external">Rewrite to external URL</Link>
</p>
<p>
<Link href="/shows/redirectme">Redirect URL</Link>
</p>
<p>
<Link href="/shows/redirectexternal">Redirect to external URL</Link>
</p>
<p>
<Link href="/shows/static/3">Add header to static page</Link>
</p>
<p>
<Link href="/cookies" prefetch={false}>
Cookie API
</Link>
</p>
<p>
<Link href="/api/hello">Adds `x-hello` request header</Link>
</p>
<p>
<Link href="/static">Rewrite static page content</Link>
</p>
<p>
<Link href="/headers">Adds `x-hello` request header to a rewrite</Link>
</p>
<p>
<Link href="/previewTest">Preview mode</Link>
</p>
</main>
</div>
)
}