Skip to content

Commit

Permalink
Fix docs path "Invalid getServerSideProps Return Value" (#39443)
Browse files Browse the repository at this point in the history
# Description

The link to https://nextjs.org/docs/messages/invalid-getserversideprops-value does not exist, the correct link should be https://nextjs.org/docs/messages/invalid-getserversideprops-return-value

![image](https://user-images.githubusercontent.com/78015359/183795431-53210024-4938-4f50-9f0a-cb412383780e.png)

![image](https://user-images.githubusercontent.com/78015359/183795482-f17f31c2-cbaf-4652-ad77-5294fa8f104a.png)

# Solution

## From

Referring to the pattern, there is no `return`

![Screenshot from 2022-08-10 10-04-33](https://user-images.githubusercontent.com/78015359/183795393-ba244d6a-84b3-426c-b5ef-4e17d108902a.png)

## To

So I removed the word `return` to match the pattern

![image](https://user-images.githubusercontent.com/78015359/183796280-da6f10d1-c017-4075-942a-01d9ad234c27.png)


## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ x] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
zakiego and ijjk committed Aug 10, 2022
1 parent 7d59da9 commit 5f033ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
File renamed without changes.
10 changes: 8 additions & 2 deletions errors/manifest.json
Expand Up @@ -673,8 +673,14 @@
"path": "/errors/import-next.md"
},
{
"title": "invalid-getserversideprops-return-value",
"path": "/errors/invalid-getserversideprops-return-value.md"
"path": "/errors/invalid-getserversideprops-return-value.md",
"redirect": {
"destination": "/docs/messages/invalid-getserversideprops-value"
}
},
{
"title": "invalid-getserversideprops-value",
"path": "/errors/invalid-getserversideprops-value.md"
},
{
"title": "no-assign-module-variable",
Expand Down

0 comments on commit 5f033ec

Please sign in to comment.