Skip to content

Commit 7276571

Browse files
committed
Redirect index pages to web-unified-docs (#164)
1 parent b4cdc9d commit 7276571

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

app/layout.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
import React from 'react'
77

88
// eslint-disable-next-line no-restricted-exports
9-
export default function RootLayout() {
9+
export default function RootLayout({
10+
children,
11+
}: {
12+
children: React.ReactNode
13+
}) {
1014
return (
11-
<html>
12-
<head />
13-
<body></body>
15+
<html lang="en">
16+
<body>{children}</body>
1417
</html>
1518
)
1619
}

app/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
* SPDX-License-Identifier: BUSL-1.1
44
*/
55

6-
/** Add your relevant code here for the issue to reproduce */
6+
import { redirect } from 'next/navigation'
7+
8+
// Redirect to the web-unified-docs repository
79
// eslint-disable-next-line no-restricted-exports
810
export default function Home() {
9-
return null
11+
redirect('https://github.com/hashicorp/web-unified-docs')
1012
}

0 commit comments

Comments
 (0)