Dynamic route not-found page not being used
Unanswered
Pumi posted this in #help-forum
PumiOP
Hi, newbie to Next.js here
I'm trying to show a custom not-found.tsx page for the users/[userId] route when the userId doesn't exist but it's not working
If I create a not-found.tsx file in the root folder or in the users folder it works, but not with users/[userId]
Here's is my code: https://github.com/jokinz/nextjs-fetch
I'm trying to show a custom not-found.tsx page for the users/[userId] route when the userId doesn't exist but it's not working
If I create a not-found.tsx file in the root folder or in the users folder it works, but not with users/[userId]
Here's is my code: https://github.com/jokinz/nextjs-fetch
2 Replies
@Pumi Hi, newbie to Next.js here
I'm trying to show a custom not-found.tsx page for the users/[userId] route when the userId doesn't exist but it's not working
If I create a not-found.tsx file in the root folder or in the users folder it works, but not with users/[userId]
Here's is my code: https://github.com/jokinz/nextjs-fetch
why not create multiple not-found.tsx file?
PumiOP
already did that for test to see if the "not-found" page functionality was working, I just don't know why it doesn't work for the dynamic route