Next.js Discord

Discord Forum

Not-found.tsx with (admin) sanity cms & (user) client folder

Unanswered
Cirneco dell'Etna posted this in #help-forum
Open in Discord
Cirneco dell'EtnaOP
Hello. I have a question about not-found.tsx routing. ATM I have structure like this.

So (admin) folder is Sanity CMS and (user) is client folder. I want to create not-found.tsx inside the (user) folder. I know I can do top level app/ layout.tsx and then create top level not-found.tsx, but then I can't include nav and footer inside without showing up in (admin) folder Sanity. So how I can rewrite or do that structure about that.

I do not want nav & footer inside the (admin) folder.

0 Replies