Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: get-static-props.md contains grammatical error #41507

Closed
Rpaudel379 opened this issue Oct 18, 2022 · 1 comment · Fixed by #41508
Closed

Docs: get-static-props.md contains grammatical error #41507

Rpaudel379 opened this issue Oct 18, 2022 · 1 comment · Fixed by #41508
Labels
Documentation Related to Next.js' official documentation.

Comments

@Rpaudel379
Copy link
Contributor

What is the improvement or update you wish to see?

When visiting this documentation (https://nextjs.org/docs/api-reference/data-fetching/get-static-props), on (https://nextjs.org/docs/api-reference/data-fetching/get-static-props#reading-files-use-processcwd) you can see the grammatical error on the third sentence .

error:

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.


solution:

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.

Is there any context that might help us understand?

Visit (https://nextjs.org/docs/api-reference/data-fetching/get-static-props#reading-files-use-processcwd)

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/api-reference/data-fetching/get-static-props

@Rpaudel379 Rpaudel379 added the Documentation Related to Next.js' official documentation. label Oct 18, 2022
Rpaudel379 added a commit to Rpaudel379/next.js_blog_starter that referenced this issue Oct 18, 2022
@kodiakhq kodiakhq bot closed this as completed in #41508 Oct 18, 2022
kodiakhq bot pushed a commit that referenced this issue Oct 18, 2022
Kikobeats pushed a commit to Kikobeats/next.js that referenced this issue Oct 24, 2022
@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant