import { GetServerSidePropsResult, InferGetServerSidePropsType } from 'next'; import API_BASE_URL from '../lib/consts/API_BASE_URL'; import fetchJSON from '../lib/fetchers/fetchJSON'; export async function getServerSideProps(): Promise< GetServerSidePropsResult > { return { props: await fetchJSON( `${API_BASE_URL}/api/anvils/1aded871-fcb1-4473-9b97-6e9c246fc568`, ), }; } function DemoAnvilStatus({ nodes, timestamp, }: InferGetServerSidePropsType): JSX.Element { return (

Demo Anvil Status

nodes

{JSON.stringify(nodes, null, 4)}

timestamp

{timestamp}
); } export default DemoAnvilStatus;