Skip to content

Commit

Permalink
remove action pathname normalizer (#69181)
Browse files Browse the repository at this point in the history
We never ended up using these outputs in the Next.js builder so this
just cleans up the normalizer for it.
  • Loading branch information
ztanner authored Aug 22, 2024
1 parent 5b2102d commit f252795
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
10 changes: 0 additions & 10 deletions packages/next/src/server/base-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ import { matchNextDataPathname } from './lib/match-next-data-pathname'
import getRouteFromAssetPath from '../shared/lib/router/utils/get-route-from-asset-path'
import { RSCPathnameNormalizer } from './normalizers/request/rsc'
import { PostponedPathnameNormalizer } from './normalizers/request/postponed'
import { ActionPathnameNormalizer } from './normalizers/request/action'
import { stripFlightHeaders } from './app-render/strip-flight-headers'
import {
isAppPageRouteModule,
Expand Down Expand Up @@ -435,7 +434,6 @@ export default abstract class Server<
protected readonly localeNormalizer?: LocaleRouteNormalizer

protected readonly normalizers: {
readonly action: ActionPathnameNormalizer | undefined
readonly postponed: PostponedPathnameNormalizer | undefined
readonly rsc: RSCPathnameNormalizer | undefined
readonly prefetchRSC: PrefetchRSCPathnameNormalizer | undefined
Expand Down Expand Up @@ -532,10 +530,6 @@ export default abstract class Server<
data: this.enabledDirectories.pages
? new NextDataPathnameNormalizer(this.buildId)
: undefined,
action:
this.enabledDirectories.app && this.minimalMode
? new ActionPathnameNormalizer()
: undefined,
}

this.nextFontManifest = this.getNextFontManifest()
Expand Down Expand Up @@ -1521,10 +1515,6 @@ export default abstract class Server<
normalizers.push(this.normalizers.rsc)
}

if (this.normalizers.action) {
normalizers.push(this.normalizers.action)
}

for (const normalizer of normalizers) {
if (!normalizer.match(pathname)) continue

Expand Down
13 changes: 0 additions & 13 deletions packages/next/src/server/normalizers/request/action.ts

This file was deleted.

0 comments on commit f252795

Please sign in to comment.