Engineering from Scratch

エンジニア目指してます

2022-07-28から1日間の記事一覧

getServerSideProps

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