#not-found.js
1 messages · Page 1 of 1 (latest)
🔎 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)
well nest the main content of the app in a (home) or (routes) folder, and keep the 404 out of it
so like /src/app/home/main content
and put the not-found in /src/app/not-found.js
would that mean its domain/home/page when using it on a website?
no he means simply group the routes under (home) dir, doesnt affect any of your routes on the website
https://nextjs.org/docs/app/building-your-application/routing/route-groups
can check this out
I do have a similar issue, i do want the not-found in my app to inherit from the rootlayout, but it does not seem to work for me like that the nav and footer js tend to be out of place for my not-found page, any idea how can i work around that?
okay thanks ill check that out
np!
but with your issue i dont have that problem, the navbar and footer just stay in the same place no matter what page im on.
have you used specific css styling on them like fixing their position?
my footer just overlaps on top of my nav, with my not-found being rendering behind the two elements
yes