-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathlayout.jsx
More file actions
65 lines (61 loc) · 1.85 KB
/
Copy pathlayout.jsx
File metadata and controls
65 lines (61 loc) · 1.85 KB
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
58
59
60
61
62
63
64
65
import { Footer, Layout, Navbar } from 'nextra-theme-docs'
import { Head } from 'nextra/components'
import { getPageMap } from 'nextra/page-map'
import { Inter } from 'next/font/google'
import '../styles.css'
const inter = Inter({ subsets: ['latin'], display: 'optional' })
export const metadata = {
metadataBase: new URL('https://edge-runtime.vercel.app'),
}
export default async function RootLayout({ children }) {
const pageMap = await getPageMap()
return (
<html
lang='en'
dir='ltr'
suppressHydrationWarning
className={inter.className}
>
<Head>
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<link rel='icon' href='/logo.svg' type='image/svg+xml' />
</Head>
<body>
<Layout
navbar={
<Navbar
projectLink='https://github.com/vercel/edge-runtime'
logo={
<>
<img
width={24}
height={24}
src='/logo.svg'
alt='Edge Runtime logo'
className='dark:hidden'
/>
<img
width={24}
height={24}
src='/logo-dark.svg'
alt=''
className='hidden dark:block'
/>
<span className='w-full font-bold pl-2'>Edge Runtime</span>
</>
}
/>
}
pageMap={pageMap}
docsRepositoryBase='https://github.com/vercel/edge-runtime/blob/main/docs'
editLink='Edit this page on GitHub'
feedback={{ content: 'Question? Give us feedback →' }}
toc={{ float: true }}
footer={<Footer />}
>
{children}
</Layout>
</body>
</html>
)
}