Unverified Commit ea05267d authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Remove unused htmlLimitedBots from renderOpts (#96701)

`renderOpts.htmlLimitedBots` was never read.
parent da8fc4fe
......@@ -902,7 +902,6 @@ export function createAppPageEntrypoint({
images: nextConfig.images,
previewProps: prerenderManifest.preview,
enableTainting: nextConfig.experimental.taint,
htmlLimitedBots: nextConfig.htmlLimitedBots,
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
multiZoneDraftMode,
......
......@@ -151,7 +151,6 @@ async function requestHandler(
images: nextConfig.images,
previewProps: prerenderManifest.preview,
enableTainting: nextConfig.experimental.taint,
htmlLimitedBots: nextConfig.htmlLimitedBots,
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
multiZoneDraftMode: false,
......
......@@ -505,7 +505,6 @@ async function exportAppImpl(
join(distDir, 'server', `${NEXT_FONT_MANIFEST}.json`)
),
images: nextConfig.images,
htmlLimitedBots: nextConfig.htmlLimitedBots.source,
experimental: {
clientTraceMetadata: nextConfig.experimental.clientTraceMetadata,
expireTime: nextConfig.expireTime,
......
......@@ -145,7 +145,6 @@ export interface RenderOptsPartial {
logServerFunctions?: boolean
params?: ParsedUrlQuery
isPrefetch?: boolean
htmlLimitedBots: string | undefined
experimental: {
/**
* When true, it indicates that the current page supports partial
......
......@@ -588,8 +588,6 @@ export default abstract class Server<
largePageDataBytes: this.nextConfig.experimental.largePageDataBytes,
isExperimentalCompile: this.nextConfig.experimental.isExperimentalCompile,
// `htmlLimitedBots` is passed to server as serialized config in string format
htmlLimitedBots: this.nextConfig.htmlLimitedBots,
cacheComponents: this.nextConfig.cacheComponents ?? false,
partialPrefetching: this.nextConfig.partialPrefetching,
validationLevel:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment