From 5117ff3770326ca276d468aae4a82ef06c4b93e2 Mon Sep 17 00:00:00 2001 From: Anish Paudel <32244578+Rpaudel379@users.noreply.github.com> Date: Tue, 18 Oct 2022 12:17:34 +0530 Subject: [PATCH] [docs] fix grammatical error #41507 (#41508) Closes: https://github.com/vercel/next.js/issues/41507 --- docs/api-reference/data-fetching/get-static-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference/data-fetching/get-static-props.md b/docs/api-reference/data-fetching/get-static-props.md index 22de01ccaddd2..d310f772f57d4 100644 --- a/docs/api-reference/data-fetching/get-static-props.md +++ b/docs/api-reference/data-fetching/get-static-props.md @@ -147,7 +147,7 @@ Files can be read directly from the filesystem in `getStaticProps`. In order to do so you have to get the full path to a file. -Since Next.js compiles your code into a separate directory you can't use `__dirname` as the path it will return will be different from the pages directory. +Since Next.js compiles your code into a separate directory you can't use `__dirname` as the path it returns will be different from the pages directory. Instead you can use `process.cwd()` which gives you the directory where Next.js is being executed.