Skip to content

Commit

Permalink
Fix required server files for font loader manifest (#40784)
Browse files Browse the repository at this point in the history
The manifest currently gets added without file extensions.
  • Loading branch information
Hannes Bornö committed Sep 22, 2022
1 parent f16992a commit 48292ba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/next/build/index.ts
Expand Up @@ -829,9 +829,12 @@ export default async function build(
config.optimizeFonts ? path.join(serverDir, FONT_MANIFEST) : null,
BUILD_ID_FILE,
appDir ? path.join(serverDir, APP_PATHS_MANIFEST) : null,
config.experimental.fontLoaders
? path.join(serverDir, FONT_LOADER_MANIFEST)
: null,
...(config.experimental.fontLoaders
? [
path.join(SERVER_DIRECTORY, FONT_LOADER_MANIFEST + '.js'),
path.join(SERVER_DIRECTORY, FONT_LOADER_MANIFEST + '.json'),
]
: []),
]
.filter(nonNullable)
.map((file) => path.join(config.distDir, file)),
Expand Down

0 comments on commit 48292ba

Please sign in to comment.