Does the next.js have types for getServerSideProps context
![](https://cdn.answeroverflow.com/1140537029839568937/Screenshot_2023-08-13_at_8.27.16_PM.png)
Solution:Jump to solution
have had much more luck not declaring a type on the function itself, and instead just typing the context as
GetServerSidePropsContext
5 Replies
Functions: getServerSideProps
API reference for
getServerSideProps
. Learn how to fetch data on each request with Next.js.Yup
You can toggle the code example to typescript
i hate the types in the Next.js docs
Solution
have had much more luck not declaring a type on the function itself, and instead just typing the context as
GetServerSidePropsContext
Nice yeah I like that too