import React from "react"; import { GetStaticPropsContext } from "next"; import Image from "next/image"; type ImageComponentProps = { name: string; }; export default function ImageComponentPage(props: any): JSX.Element { return ( {`Hello ${props.name}! This is an SSG Page using getStaticProps() and with the new Image component.`} Appstore ); } export async function getStaticProps( ctx: GetStaticPropsContext ): Promise<{ props: ImageComponentProps }> { return { props: { name: "serverless-next.js" } }; }