260922_01_ENH: 404 페이지에서 바로 root 페이지로 이동 되도록 수정 #3
@@ -1,6 +1,9 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import { redirect } from "next/navigation";
|
||||||
|
|
||||||
export default function NotFound() {
|
export default function NotFound() {
|
||||||
|
redirect("/");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="flex min-h-screen flex-col items-center justify-center gap-4 p-6 text-center">
|
<main className="flex min-h-screen flex-col items-center justify-center gap-4 p-6 text-center">
|
||||||
<p className="text-sm text-muted-foreground">404</p>
|
<p className="text-sm text-muted-foreground">404</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user