Function getServerSideProps
- getServerSideProps(ctx): Promise<undefined | {
props?: undefined;
redirect: {
destination: string;
permanent: boolean;
};
} | {
props: {
serverSideProjects: ({
annotations: Json;
configuration: Json;
created_at: null | string;
id: string;
model: null | string;
options: Json;
thumbnail: string;
title: null | string;
user_id: null | string;
} | {
annotations: Json;
configuration: Json;
created_at: null | string;
id: string;
model: null | string;
options: Json;
title: null | string;
user_id: null | string;
})[];
};
redirect?: undefined;
}> Parameters
ctx: GetServerSidePropsContext
Returns Promise<undefined | {
props?: undefined;
redirect: {
destination: string;
permanent: boolean;
};
} | {
props: {
serverSideProjects: ({
annotations: Json;
configuration: Json;
created_at: null | string;
id: string;
model: null | string;
options: Json;
thumbnail: string;
title: null | string;
user_id: null | string;
} | {
annotations: Json;
configuration: Json;
created_at: null | string;
id: string;
model: null | string;
options: Json;
title: null | string;
user_id: null | string;
})[];
};
redirect?: undefined;
}>