import { GetServerSideProps, GetStaticPaths, GetStaticProps } from 'next'; import Link from 'next/link'; type PageParams = { id:string; } type PageProps = { id:string; } export const getServerSideProps:GetServerSideProps<> = async ({ params }) => { const { id } = params as PageParams; // if(id !== '0') { // return { // notFound: true // }; // } return { props: { id }, }; }; export const Page:React.FC = ({ id }) => { return (

Viewing Game ID: {id}

Play Game
); }; export default Page;