This codemod is recommended when migrating from the /pages to the /app directory.
It adds a comment to files that should be deleted and migrated to different files during the migration process.
Namely, such are the following files:
- _document.*,
- _app.*,
- _error.*.
Example
Before
jsx
After
jsx