Engineering from Scratch

エンジニア目指してます

Next Docs

getServerSideProps

Next.js は getServerSideProps によって取得したデータを使って page の pre-render を行う。 import { InferGetServerSidePropsType } from "next"; export const getServerSideProps = async (context) => { const res = await fetch("https://api.github…