export async function getServerSideProps({ res }) { res.setHeader("Cache-Control", "public, s-maxage=10, stale-while-revalidate=59") const response = await fetch("http://localhost:3000/api/players", { method: "GET", headers: { "Content-Type": "application/json", }, }) const allPlayers = await response.json() return { props: { allPlayers }, } } export default function Web({ allPlayers }) { return ( <>

IsaCon

{allPlayers.data.map((player) => (
{player.name}
))}
) }