Skip to content

Commit 1246760

Browse files
authored
Remove App Router 404s and reduce per-request allocations (#60410)
Remove unused App Router (26 files, ~1,500 lines) and eliminate per-request shallow-copy allocations from memoized data reads. Fix learning-track code to copy-before-mutate instead. Skip redundant fs.stat in production. Update 404 tests for minimal HTML response.
1 parent 6a13a99 commit 1246760

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+72
-1677
lines changed

next.config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ const config: NextConfig = {
3636
},
3737
sassOptions: {
3838
quietDeps: true,
39-
silenceDeprecations: [
40-
'legacy-js-api',
41-
'import',
42-
'global-builtin',
43-
'color-4-api',
44-
'mixed-decls',
45-
],
39+
silenceDeprecations: ['legacy-js-api', 'import', 'global-builtin', 'color-4-api'],
4640
},
4741
// Don't use automatic Next.js logging in dev unless the log level is `debug` or higher
4842
// See `src/observability/logger/README.md` for log levels

src/app/404/page.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/app/README.md

Lines changed: 0 additions & 71 deletions
This file was deleted.

src/app/_not-found/page.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/app/client-layout.tsx

Lines changed: 0 additions & 122 deletions
This file was deleted.

src/app/components/AppRouterFooter.tsx

Lines changed: 0 additions & 83 deletions
This file was deleted.

src/app/components/AppRouterHeader.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)