Skip to content

How to redirect to a 404.tsx page in case of Page not found? #4417

Discussion options

You must be logged in to vote

I'm assuming you're using thepages directory together with the app directory. This is a Next.js issue vercel/next.js#58945, but the workaround (mentioned in the issue comments) is to use the not-found.tsx file in the app directory instead of pages/404.tsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anavisgueira
Comment options

Answer selected by anavisgueira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants