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({ ...@@ -902,7 +902,6 @@ export function createAppPageEntrypoint({
images: nextConfig.images, images: nextConfig.images,
previewProps: prerenderManifest.preview, previewProps: prerenderManifest.preview,
enableTainting: nextConfig.experimental.taint, enableTainting: nextConfig.experimental.taint,
htmlLimitedBots: nextConfig.htmlLimitedBots,
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength, reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
multiZoneDraftMode, multiZoneDraftMode,
......
...@@ -151,7 +151,6 @@ async function requestHandler( ...@@ -151,7 +151,6 @@ async function requestHandler(
images: nextConfig.images, images: nextConfig.images,
previewProps: prerenderManifest.preview, previewProps: prerenderManifest.preview,
enableTainting: nextConfig.experimental.taint, enableTainting: nextConfig.experimental.taint,
htmlLimitedBots: nextConfig.htmlLimitedBots,
reactMaxHeadersLength: nextConfig.reactMaxHeadersLength, reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
multiZoneDraftMode: false, multiZoneDraftMode: false,
......
...@@ -505,7 +505,6 @@ async function exportAppImpl( ...@@ -505,7 +505,6 @@ async function exportAppImpl(
join(distDir, 'server', `${NEXT_FONT_MANIFEST}.json`) join(distDir, 'server', `${NEXT_FONT_MANIFEST}.json`)
), ),
images: nextConfig.images, images: nextConfig.images,
htmlLimitedBots: nextConfig.htmlLimitedBots.source,
experimental: { experimental: {
clientTraceMetadata: nextConfig.experimental.clientTraceMetadata, clientTraceMetadata: nextConfig.experimental.clientTraceMetadata,
expireTime: nextConfig.expireTime, expireTime: nextConfig.expireTime,
......
...@@ -145,7 +145,6 @@ export interface RenderOptsPartial { ...@@ -145,7 +145,6 @@ export interface RenderOptsPartial {
logServerFunctions?: boolean logServerFunctions?: boolean
params?: ParsedUrlQuery params?: ParsedUrlQuery
isPrefetch?: boolean isPrefetch?: boolean
htmlLimitedBots: string | undefined
experimental: { experimental: {
/** /**
* When true, it indicates that the current page supports partial * When true, it indicates that the current page supports partial
......
...@@ -588,8 +588,6 @@ export default abstract class Server< ...@@ -588,8 +588,6 @@ export default abstract class Server<
largePageDataBytes: this.nextConfig.experimental.largePageDataBytes, largePageDataBytes: this.nextConfig.experimental.largePageDataBytes,
isExperimentalCompile: this.nextConfig.experimental.isExperimentalCompile, 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, cacheComponents: this.nextConfig.cacheComponents ?? false,
partialPrefetching: this.nextConfig.partialPrefetching, partialPrefetching: this.nextConfig.partialPrefetching,
validationLevel: 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