high90%
Duplicate identifier 'PagesPageConfig' when Building a Page Router NextJS Application without an pages/api route
Building a Next.js Page Router application after running the dev server and deleting the pages/api directory fails with a TypeScript error: Duplicate identifier 'PagesPageConfig'. The issue is caused by stale generated type files in .next/dev/types that are not cleaned up when API routes are removed.
