mirror of
https://gitlab.com/serenetia/endpild-laman.git
synced 2025-03-16 06:45:54 +08:00
11 lines
241 B
TypeScript
11 lines
241 B
TypeScript
|
import { useRouter } from "next/router";
|
||
|
import { useEffect } from "react";
|
||
|
|
||
|
export default function _404() {
|
||
|
const router = useRouter();
|
||
|
useEffect(() => {
|
||
|
void router.prefetch("/");
|
||
|
void router.push("/");
|
||
|
});
|
||
|
};
|