Reputation: 53
I have the 404.tsx
file in the apps/specificapp/pages/
directory, but NextJS still displays the default pre-generated 404 page.
Am I misunderstanding the documentation, or is something preventing me to override the default 404 page?
Upvotes: 2
Views: 2425
Reputation: 53
So as it turns out the next.config.js
configured to project to only accept the file extensions page.tsx
, page.ts
, page.jsx
and page.js
. I changed my filename to 404.page.tsx
and it's working perfectly now.
Upvotes: 3