Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sireesha-siri
Copy link

PR title - docs: polish Project Structure page (grammar, consistency, clarity)
PR description -

  1. Fixes an Oxford comma in the routing files description for consistency.
  2. Normalizes heading capitalization to sentence case.
  3. Corrects “Files conventions” → “File conventions”.
  4. Aligns not-found.js description with earlier table (it’s not an error boundary). Clarifies intercepting routes microcopy.

…n, and not-found description; improve microcopy

PR title
docs: polish Project Structure page (grammar, consistency, clarity)
PR description
Fixes an Oxford comma in the routing files description for consistency.
Normalizes heading capitalization to sentence case.
Corrects “Files conventions” → “File conventions”.
Aligns not-found.js description with earlier table (it’s not an error boundary).
Clarifies intercepting routes microcopy.
@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Sep 30, 2025
@ijjk
Copy link
Member

ijjk commented Sep 30, 2025

Allow CI Workflow Run

  • approve CI run for commit: b6872ea

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

- `error.js` (React error boundary)
- `loading.js` (React suspense boundary)
- `not-found.js` (React error boundary)
- `not-found.js` (Not found UI)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an error boundary though, I see your point.

It is an error boundary that can catch a special error, https://github.com/vercel/next.js/blob/canary/packages/next/src/client/components/http-access-fallback/error-boundary.tsx,

Do you think there's a way in which we could communicate both ideas?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification! I see your point that not-found.js is technically an error boundary for a specific type of error.

To communicate both ideas, would it be better to change the text to not-found.js (Error boundary for "not found" state)? This seems to be the most accurate description.

I'm happy to make this change and push a new commit once you confirm this wording.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think that'd work -

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you! I've made the change and pushed a new commit.

- `error.js` (React error boundary)
- `loading.js` (React suspense boundary)
- `not-found.js` (React error boundary)
- `not-found.js` (Error boundary for "not found" state)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `not-found.js` (Error boundary for "not found" state)
- `not-found.js` (React error boundary for "not found" UI)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion! I made this update and pushed a new commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants