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