Custom _app and _document get ignored when moving files to src/pages folder in Next.js

Changing your project folder structure or adding new _app/_document files can sometimes lead to caching issues.

Delete the .next folder and restart your dev server, to ensure any caching done by Next.js doesn’t get in the way.

Leave a Comment