Skip to content

wpomme/scheduleit

Repository files navigation

Json server

install command: npm install -g json-server

json-server --port 30000 --watch mock/schedules.json

pagesgetStaticPropsでデータを取得する

const res = await fetch("http://localhost:30000/schedules")
const schedules: TopProps = await res.json()