getServerSideProps / getStaticProps kullanırsan SSR aktif olur, bu methodlar yoksa CSR çalışır maalesef.
export const getServerSideProps = async (context) => {
const { params } = context;
const data = await getCategoryAPI(params.categoryId); // API çağrısı
const seo = {
site_description: "SEO için uygun bir açıklama." // SEO verileri
};
return {
props: {
data,
seo,
},
};
};
Şunu eklememe rağmen sonuç değişmiyor nedense.