Skip to content

Commit 4b07332

Browse files
committed
redirect with home page
1 parent 71131a7 commit 4b07332

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

app/(home)/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { redirect } from 'next/navigation';
2+
export default async function Home() {
3+
redirect('/content');
4+
}
5+

next.config.mjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ const withMDX = createMDX();
66
const config = {
77
reactStrictMode: true,
88
output: 'export',
9-
async redirects() {
10-
return [
11-
{
12-
source: '/',
13-
destination: '/content',
14-
permanent: false,
15-
},
16-
];
17-
},
189
};
1910

2011
export default withMDX(config);

0 commit comments

Comments
 (0)