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

gundogduyakici

GรผndoฤŸdu Yakฤฑcฤฑ

Posted on March 31, 2023

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.

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
gundogduyakici
GรผndoฤŸdu Yakฤฑcฤฑ

Posted on March 31, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About