This context is normally available in the getServerSideProps function of the Next Pages Router.

interface GetServerSidePropsContext {
    request: IncomingMessage & {
        cookies: Partial<{
            [key: string]: string;
        }>;
    };
    response: ServerResponse<IncomingMessage>;
}

Properties

Properties

request: IncomingMessage & {
    cookies: Partial<{
        [key: string]: string;
    }>;
}

Type declaration

  • cookies: Partial<{
        [key: string]: string;
    }>