Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 31, 2023 12:46 pm GMT

Should I add a not-found.jsx file for each page?

Hello,

I have a not-found.jsx file under the App folder, and on some pages I redirect to the notFound() function for some situations and I see the design. However, no link works. It does not redirect.

But if I add not-found.jsx in this page folder, it works fine. Do I have to add not-found.jsx to each page individually?

My Next.js version is 13.2.3.


Original Link: https://dev.to/gundogduyakici/should-i-add-a-not-foundjsx-file-for-each-page-4oo5

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To