Skip to content

Commit f252795

Browse files
authored
remove action pathname normalizer (vercel#69181)
We never ended up using these outputs in the Next.js builder so this just cleans up the normalizer for it.
1 parent 5b2102d commit f252795

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

packages/next/src/server/base-server.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ import { matchNextDataPathname } from './lib/match-next-data-pathname'
138138
import getRouteFromAssetPath from '../shared/lib/router/utils/get-route-from-asset-path'
139139
import { RSCPathnameNormalizer } from './normalizers/request/rsc'
140140
import { PostponedPathnameNormalizer } from './normalizers/request/postponed'
141-
import { ActionPathnameNormalizer } from './normalizers/request/action'
142141
import { stripFlightHeaders } from './app-render/strip-flight-headers'
143142
import {
144143
isAppPageRouteModule,
@@ -435,7 +434,6 @@ export default abstract class Server<
435434
protected readonly localeNormalizer?: LocaleRouteNormalizer
436435

437436
protected readonly normalizers: {
438-
readonly action: ActionPathnameNormalizer | undefined
439437
readonly postponed: PostponedPathnameNormalizer | undefined
440438
readonly rsc: RSCPathnameNormalizer | undefined
441439
readonly prefetchRSC: PrefetchRSCPathnameNormalizer | undefined
@@ -532,10 +530,6 @@ export default abstract class Server<
532530
data: this.enabledDirectories.pages
533531
? new NextDataPathnameNormalizer(this.buildId)
534532
: undefined,
535-
action:
536-
this.enabledDirectories.app && this.minimalMode
537-
? new ActionPathnameNormalizer()
538-
: undefined,
539533
}
540534

541535
this.nextFontManifest = this.getNextFontManifest()
@@ -1521,10 +1515,6 @@ export default abstract class Server<
15211515
normalizers.push(this.normalizers.rsc)
15221516
}
15231517

1524-
if (this.normalizers.action) {
1525-
normalizers.push(this.normalizers.action)
1526-
}
1527-
15281518
for (const normalizer of normalizers) {
15291519
if (!normalizer.match(pathname)) continue
15301520

packages/next/src/server/normalizers/request/action.ts

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

0 commit comments

Comments
 (0)