Skip to content

Commit

Permalink
Last readManifest case
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jan 3, 2024
1 parent a6b80d6 commit 201b370
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2059,10 +2059,8 @@ export default async function build(
formatManifest(requiredServerFiles)
)

const middlewareManifest: MiddlewareManifest = JSON.parse(
await readFileUtf8(
path.join(distDir, SERVER_DIRECTORY, MIDDLEWARE_MANIFEST)
)
const middlewareManifest: MiddlewareManifest = await readManifest(
path.join(distDir, SERVER_DIRECTORY, MIDDLEWARE_MANIFEST)
)

const finalPrerenderRoutes: { [route: string]: SsgRoute } = {}
Expand Down

0 comments on commit 201b370

Please sign in to comment.