@returns
export const getServerSideProps: GetServerSideProps = async (context) => { const nhostSession = await getNhostSession( { subdomain: '<project_subdomain>', region: '<project_region>' }, context ) return { props: { nhostSession } } }
Partial<Pick<NhostReactClientConstructorParams, “subdomain” | “region” | “authUrl” | “graphqlUrl” | “storageUrl” | “functionsUrl”>>
GetServerSidePropsContext<ParsedUrlQuery, PreviewData>
export async function getServerSideProps(context: GetServerSidePropsContext) { // or NextPageContext const nhostSession = await getNhostSession( { subdomain: '<project_subdomain>', region: '<project_region>' }, context ) return { props: { nhostSession } } }
Was this page helpful?