From 5f033ecb543bdb5d0591db6472cf4c0a346e5c3e Mon Sep 17 00:00:00 2001 From: "M. Zakiyuddin Munziri" Date: Wed, 10 Aug 2022 10:34:43 +0800 Subject: [PATCH] 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> --- ...rn-value.md => invalid-getserversideprops-value.md} | 0 errors/manifest.json | 10 ++++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) rename errors/{invalid-getserversideprops-return-value.md => invalid-getserversideprops-value.md} (100%) diff --git a/errors/invalid-getserversideprops-return-value.md b/errors/invalid-getserversideprops-value.md similarity index 100% rename from errors/invalid-getserversideprops-return-value.md rename to errors/invalid-getserversideprops-value.md diff --git a/errors/manifest.json b/errors/manifest.json index 44fcf7f3df62..3f013867de55 100644 --- a/errors/manifest.json +++ b/errors/manifest.json @@ -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",