Unverified Commit 1e47930d authored by Anish Paudel's avatar Anish Paudel Committed by GitHub

[docs] fix grammatical error #41507 (#41508)

Closes: https://github.com/vercel/next.js/issues/41507
parent 45c36e66
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment