silverwolf-x/project / errors /invalid-getserversideprops-value.mdx
silverwolf-x's picture
download
raw
535 Bytes
---
title: 'Invalid `getServerSideProps` Return Value'
---
## Why This Error Occurred
In one of the page's `getServerSideProps` the return value had the incorrect shape.
## Possible Ways to Fix It
Make sure to return the following shape from `getServerSideProps`:
```tsx filename="pages/example.tsx"
export async function getServerSideProps(ctx: GetServerSidePropsContext) {
return {
props: { [key: string]: any }
}
}
```
## Useful Links
- [getServerSideProps](/docs/pages/api-reference/functions/get-server-side-props)

Xet Storage Details

Size:
535 Bytes
·
Xet hash:
73dd60aade9bc4fe45a0330735f096db1646e2070297224856dace88ceb936f5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.