How to fix getServerSideProps delay before rendering page. (SEO)
Unanswered
American Sable posted this in #help-forum
American SableOP
Hi I am implementing SEO for a Dynamic route (user Profile), I used getServerSideProps to get the Data for the MetaTags and enable to have a Card Preview when a link of a user profile is been shared, But seems getServerSideProps takes long time.
Pls can any one recomend any fix to this or another way to implement this.
Pls can any one recomend any fix to this or another way to implement this.
export async function getServerSideProps({ params }) {
const username = params.username;
const response = await apiCall("GET", `/user/username=${username}`);
return {
props: {
userProfileData: response.data,
},
};
}