Hi. I'd like to create a simple website that has a portfolio and blog section. I see in the Nextjs custom server it calls getServerSideProps to render the slug parameter of the pages.
Should I be using server-side rendering and this template for this type of website? To render statically through the browser, do I simply change this function from getServerSideProps to getStaticProps ?
const slug = ctx.params?.slug ? (ctx.params.slug as string[]).join('/') : 'home';
const pageQuery = await payload.find({
collection: 'pages',
where: {
slug: {
equals: slug,
},
},
});```