Fix docs path "Invalid getServerSideProps Return Value" (#39443)
# 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>
This commit is contained in:
parent
7d59da97ac
commit
5f033ecb54
2 changed files with 8 additions and 2 deletions
|
@ -673,8 +673,14 @@
|
||||||
"path": "/errors/import-next.md"
|
"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",
|
"title": "no-assign-module-variable",
|
||||||
|
|
Loading…
Reference in a new issue