import { useEffect } from "react";
import { useRouter } from "next/router";

export default function Redirect() {
  const router = useRouter();
  useEffect(() => { router.replace("/world/lore"); }, [router]);
  return null;
}

export async function getServerSideProps() {
  return { redirect: { destination: "/world/lore", permanent: true } };
}
