An Interest In:
Web News this Week
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
March 31, 2023 12:46 pm GMT
Original Link: https://dev.to/gundogduyakici/should-i-add-a-not-foundjsx-file-for-each-page-4oo5
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To