#Using a pathless route my custom not-found page does not get applied

7 messages · Page 1 of 1 (latest)

north brambleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

bronze cobalt
#

what was the route that you're tryin to access?

untold otter
wet plank
#

It must be app/not-found.tsx. Nothing in between app and the file

#

If you can’t use that, you can use app/…/[…catchAll]/page.tsx

untold otter
#

I see, thanks. Yeah if I move it to the root, it also wants a root layout which breaks the architecture I’m going for. I’ll play around with it, thank you!

wet plank
#

You can also use this approach #off-topic message but I would just make a catch-all route