import React from "react"; import { NextPageContext } from "next"; type SSGPageProps = { name: string; }; export default function SSGPage(props: any): JSX.Element { return ( {`Hello ${props.name}! This is an SSG Page using getStaticProps().`} ); } export async function getStaticProps( ctx: NextPageContext ): Promise<{ props: SSGPageProps }> { return { props: { name: "serverless-next.js" } }; }