Function getServerSideProps
- getServerSideProps(ctx): Promise<{
props?: undefined;
redirect: {
destination: string;
permanent: false;
};
} | {
props: {};
redirect?: undefined;
}> Parameters
ctx: GetServerSidePropsContext<ParsedUrlQuery, PreviewData>
Returns Promise<{
props?: undefined;
redirect: {
destination: string;
permanent: false;
};
} | {
props: {};
redirect?: undefined;
}>