Root not-found.tsx with multiple root layouts

Is anyone aware of how to have a global not-found.tsx with multiple root layouts in Next's app directory? Multiple root layouts are supported as outlined here: https://nextjs.org/docs/app/building-your-application/routing/route-groups#creating-multiple-root-layouts And a global not-found is outlined here: https://nextjs.org/docs/app/api-reference/file-conventions/not-found However, if a global not found is created in app/not-found then we get
1 Reply
iDarkLightning
iDarkLightningOP2y ago
Okay this actually seems to be a known issue: https://github.com/vercel/next.js/discussions/50034
GitHub
Multiple root layouts and root not-found? · vercel next.js · Disc...
Multiple root layouts are a highlighted feature of the "Route Groups" page in the Next.js documentation. On the other hand, a "root app/not-found.js" file is required to handle ...
Want results from more Discord servers?
Add your server