my-app
Preparing search index...
pages/profil
getServerSideProps
Function getServerSideProps
getServerSideProps
(
context
:
GetServerSidePropsContext
,
)
:
Promise
<
|
{
props
?:
undefined
;
redirect
:
{
destination
:
string
;
permanent
:
boolean
}
;
}
|
{
props
:
{
session
:
{
expires
:
string
;
user
:
{
email
:
string
|
null
;
id
:
string
;
image
:
string
|
null
;
name
:
string
;
}
;
}
;
}
;
redirect
?:
undefined
;
}
,
>
Parameters
context
:
GetServerSidePropsContext
Returns
Promise
<
|
{
props
?:
undefined
;
redirect
:
{
destination
:
string
;
permanent
:
boolean
}
;
}
|
{
props
:
{
session
:
{
expires
:
string
;
user
:
{
email
:
string
|
null
;
id
:
string
;
image
:
string
|
null
;
name
:
string
;
}
;
}
;
}
;
redirect
?:
undefined
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
my-app
Loading...