Skip to content

Commit

Permalink
Revert "Memoize getMiddlewareManifest"
Browse files Browse the repository at this point in the history
This reverts commit 7ab32b6.
  • Loading branch information
timneutkens committed Sep 17, 2023
1 parent 7ab32b6 commit fd8dc72
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/next/src/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ function getMiddlewareMatcher(

export default class NextNodeServer extends BaseServer {
protected middlewareManifestPath: string
protected middlewareManifest: MiddlewareManifest | undefined
private _serverDistDir: string | undefined
private imageResponseCache?: ResponseCache
protected renderWorkersPromises?: Promise<void>
Expand Down Expand Up @@ -1339,13 +1338,7 @@ export default class NextNodeServer extends BaseServer {

protected getMiddlewareManifest(): MiddlewareManifest | null {
if (this.minimalMode) return null

if (this.middlewareManifest) {
return this.middlewareManifest
}

const manifest: MiddlewareManifest = require(this.middlewareManifestPath)
this.middlewareManifest = manifest
return manifest
}

Expand Down

0 comments on commit fd8dc72

Please sign in to comment.