Skip to content

not found page#294

Merged
danielmarv merged 1 commit intonext-js-migrationfrom
origin/actions-auto
Mar 2, 2026
Merged

not found page#294
danielmarv merged 1 commit intonext-js-migrationfrom
origin/actions-auto

Conversation

@danielmarv
Copy link
Member

No description provided.

Signed-off-by: Daniel Ntege <danientege785@gmail.com>
Copilot AI review requested due to automatic review settings March 2, 2026 10:52
@danielmarv danielmarv merged commit 933d45d into next-js-migration Mar 2, 2026
9 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a catch-all route handler under [locale]/[...rest] that triggers Next.js's built-in 404 mechanism for any unmatched paths within a locale segment. It ties into the existing not-found.tsx page at the [locale] level, ensuring all unrecognized locale-prefixed URLs render the custom 404 UI.

Changes:

  • New catch-all page src/app/[locale]/[...rest]/page.tsx that calls notFound() for any unmatched route under a locale prefix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants