rsnext/docs
Marius Craciunoiu 64a709db6c
Update docs to reflect page props are optional (#25142)
This PR changes the `GetServerSidePropsResult` type to require that it returns a `props` object. The docs mention it's required even for a redirect/notFound, and it throws and error if it's not returned.

From the docs:

> props - A required object with the props that will be received by the page component. It should be a serializable object

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [ ] Make sure the linting passes
2021-05-14 16:59:24 +00:00
..
advanced-features Update Preview Mode docs with note on local dev (#22906) 2021-04-19 22:19:32 -05:00
api-reference docs(rewrites.md): update beforeFiles note (#25113) 2021-05-13 18:32:46 +00:00
api-routes docs(response-helpers): Update res.json definition (#24782) 2021-05-05 15:54:36 +02:00
basic-features Update docs to reflect page props are optional (#25142) 2021-05-14 16:59:24 +00:00
migrating Update incremental migration doc and add version for new rewrites (#23859) 2021-04-09 18:59:59 +00:00
routing Add note about preloading to routing introduction. (#22656) 2021-03-02 03:17:43 +00:00
authentication.md Docs update: Adds supertokens to 'Bring Your Own Database' section as well + improvements to code structure in example (#23779) 2021-04-20 17:23:32 +00:00
deployment.md docs(deployment): prune non-production deps (#23056) 2021-04-20 15:51:36 +00:00
faq.md Update .now.sh to .vercel.app. (#22359) 2021-04-14 09:46:06 -05:00
getting-started.md feat(create-next-app): add --ts, --typescript support (#24655) 2021-05-07 10:08:16 +02:00
manifest.json Add documentation on Font Optimization. (#24572) 2021-04-28 22:11:05 +00:00
upgrading.md Fix upgrading broken link (#23785) 2021-04-08 10:15:37 +00:00