Skip to content

Commit 210919a

Browse files
remove blog
1 parent d071f7c commit 210919a

File tree

2 files changed

+23
-82
lines changed

2 files changed

+23
-82
lines changed

app/blog/page.tsx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
1-
import { redirect } from "next/navigation";
1+
"use client";
2+
3+
import { useEffect } from "react";
4+
import { useRouter } from "next/navigation";
25

36
export default function BlogRedirect() {
4-
redirect("/gone");
7+
const router = useRouter();
8+
9+
useEffect(() => {
10+
router.replace("/");
11+
}, [router]);
12+
13+
return (
14+
<div
15+
style={{
16+
display: "flex",
17+
alignItems: "center",
18+
justifyContent: "center",
19+
minHeight: "100vh",
20+
fontFamily: "system-ui, sans-serif",
21+
}}
22+
>
23+
<p>Redirecting...</p>
24+
</div>
25+
);
526
}

app/gone/route.ts

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)