Next.js Discord

Discord Forum

Does App Router content take precedence over Pages Router content in incremental adoption?

Unanswered
Glen of Imaal Terrier posted this in #help-forum
Open in Discord
Glen of Imaal TerrierOP
For example, if I have a /src/pages/404.tsx file and a /src/app/not-found.tsx file, does the app always render the latter, making 404.tsx redundant? Is there a way to change that?

1 Reply

Toyger
from nextjs docs app router have priority over page router.
yeah in this case it probably redundant, and most likely you can't change priority, you can only rename/delete file in app router so it use file from page router.