AlexsLemonade / AlexsLemonade/refinebio-web

Add custom error file to handle unmatched URLs

Open
#347 0 comments 0 reactions 1 assignee Claimed by @nozomione View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Context
Resources: [Next.js: not-found.js](https://nextjs.org/docs/app/api-reference/file-conventions/not-found)

Currently we're using the `page` router's `_error.js` to handle unmatched URLs in our application. In the `app` router, we can use `not-found.js` to handle a 404 HTTP status.

We'll need to create a `note-found.js` for handling 404.

### Problem or idea
As stated above, create a custom not-found error file to handle the application's mismatched URLs.

### Solution or next step
1. Create a `not-found.js` file to handle 404 in the `app` folder
2. Import `shared/Error/Custom404` into the file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.