Skip to content

Commit

Permalink
remove response-config manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 12, 2025
1 parent 22270bc commit 0d66343
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
22 changes: 0 additions & 22 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ import {
UNDERSCORE_NOT_FOUND_ROUTE_ENTRY,
UNDERSCORE_NOT_FOUND_ROUTE,
DYNAMIC_CSS_MANIFEST,
RESPONSE_CONFIG_MANIFEST,
} from '../shared/lib/constants'
import {
getSortedRoutes,
Expand Down Expand Up @@ -1341,24 +1340,6 @@ export default async function build(
NextBuildContext.clientRouterFilters = clientRouterFilters
}

// if (config.experimental.streamingMetadata) {
// // Write html limited bots config to response-config-manifest
// const responseConfigManifestPath = path.join(
// distDir,
// RESPONSE_CONFIG_MANIFEST
// )
// const responseConfigManifest: {
// version: number
// htmlLimitedBots: string
// } = {
// version: 0,
// htmlLimitedBots:
// config.experimental.htmlLimitedBots ||
// HTML_LIMITED_BOT_UA_RE_STRING,
// }
// await writeManifest(responseConfigManifestPath, responseConfigManifest)
// }

// Ensure commonjs handling is used for files in the distDir (generally .next)
// Files outside of the distDir can be "type": "module"
await writeFileUtf8(
Expand Down Expand Up @@ -2269,9 +2250,6 @@ export default async function build(
path.join(SERVER_DIRECTORY, FUNCTIONS_CONFIG_MANIFEST),
path.join(SERVER_DIRECTORY, MIDDLEWARE_MANIFEST),
path.join(SERVER_DIRECTORY, MIDDLEWARE_BUILD_MANIFEST + '.js'),
...(config.experimental.streamingMetadata
? [RESPONSE_CONFIG_MANIFEST]
: []),
...(!process.env.TURBOPACK
? [
path.join(
Expand Down
1 change: 0 additions & 1 deletion packages/next/src/shared/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const EXPORT_DETAIL = 'export-detail.json'
export const PRERENDER_MANIFEST = 'prerender-manifest.json'
export const ROUTES_MANIFEST = 'routes-manifest.json'
export const IMAGES_MANIFEST = 'images-manifest.json'
export const RESPONSE_CONFIG_MANIFEST = 'response-config-manifest.json'
export const SERVER_FILES_MANIFEST = 'required-server-files.json'
export const DEV_CLIENT_PAGES_MANIFEST = '_devPagesManifest.json'
export const MIDDLEWARE_MANIFEST = 'middleware-manifest.json'
Expand Down

0 comments on commit 0d66343

Please sign in to comment.