Next.js Discord

Discord Forum

Next 13 App Router, how to remove the default /404 behaviour?

Unanswered
Pigeon tremex posted this in #help-forum
Open in Discord
Pigeon tremexOP
Hey, im using the new app router setup, and want to remove the default /404 page in production mode
For context, I have a app/[code]/page.tsx set of pages, and i want /404 to serve from that route, not the not found page
In dev mode this works fine, but in prod mode, going to /404 gets the default not found page

0 Replies