import useGet from "../utils/hooks/useGet"; import type { ListItem } from "../types/http"; import NovelItem from "../components/NovelItem"; const Home = () => { const { data } = useGet("/api/list"); return (

Popular This Week

); }; export async function getServerSideProps() { const data = await fetch(`https://novels.yergoo.com/api/list`).then((res) => res.json() ); return { props: { fallback: { "/api/list": data, }, }, }; } export default Home;