Page router 404/500 custom page stopped working after adding App router base folder (/app)
Unanswered
Bighead carp posted this in #help-forum
Bighead carpOP
Hi, I am slowly transitioning from
page router
to app router
but once I added the /app
folder with a layout/tsx
and /api
subfolder with a single file in it, the page router
404.js
and 500.js
stopped working and shows the default nextjs
404
and 500
page, is there any way to fix this before I fully transitioned to app router
?1 Reply
@Bighead carp Hi, I am slowly transitioning from `page router` to `app router` but once I added the `/app` folder with a `layout/tsx` and `/api` subfolder with a single file in it, the `page router` `404.js` and `500.js` stopped working and shows the default `nextjs` `404` and `500` page, is there any way to fix this before I fully transitioned to `app router`?
Australian Freshwater Crocodile
I think it would be best to just create the
not-found
and error
and global-error
files in the app router