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

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

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