Fix `instant-false` codemod to run on route segment filenames (#98880)
### Why? The codemod incorrectly adds `instant = false` to helper files because its matcher matches `layout.ts` within `custom-layout.ts` and `page.tsx` within `homepage.tsx`. ### How? Require filenames to start with `page.`, `layout.`, or `default.`, while preserving compound extensions. The codemod does not consult `pageExtensions`, so files such as `page.test.tsx` remain eligible. <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment