Unverified Commit bad53655 authored by Maia Teegarden's avatar Maia Teegarden Committed by GitHub

Update supported config options for Turbopack (#55556)

Closes WEB-1600
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 8881c413
...@@ -23,21 +23,31 @@ const supportedTurbopackNextConfigOptions = [ ...@@ -23,21 +23,31 @@ const supportedTurbopackNextConfigOptions = [
'trailingSlash', 'trailingSlash',
'i18n.locales', 'i18n.locales',
'i18n.defaultLocale', 'i18n.defaultLocale',
'sassOptions.includePaths', 'sassOptions',
'configOrigin',
'httpAgentOptions',
'useFileSystemPublicRoutes',
'generateEtags',
'assetPrefix',
'experimental.serverComponentsExternalPackages', 'experimental.serverComponentsExternalPackages',
'experimental.turbo', 'experimental.turbo',
'experimental.mdxRs', 'experimental.mdxRs',
'experimental.forceSwcTransforms', 'experimental.forceSwcTransforms',
'experimental.serverActionsBodySizeLimit',
'experimental.memoryBasedWorkersCount',
// options below are not really supported, but ignored // options below are not really supported, but ignored
'webpack', 'webpack',
'devIndicators', 'devIndicators',
'onDemandEntries', 'onDemandEntries',
'excludeDefaultMomentLocales',
'experimental.cpus', 'experimental.cpus',
'experimental.sharedPool', 'experimental.sharedPool',
'experimental.proxyTimeout', 'experimental.proxyTimeout',
'experimental.isrFlushToDisk', 'experimental.isrFlushToDisk',
'experimental.workerThreads', 'experimental.workerThreads',
'experimental.caseSensitiveRoutes', 'experimental.caseSensitiveRoutes',
'experimental.optimizePackageImports',
'experimental.optimizeServerReact',
] ]
// The following will need to be supported by `next build --turbo` // The following will need to be supported by `next build --turbo`
...@@ -54,6 +64,8 @@ const prodSpecificTurboNextConfigOptions = [ ...@@ -54,6 +64,8 @@ const prodSpecificTurboNextConfigOptions = [
'optimizeFonts', 'optimizeFonts',
'poweredByHeader', 'poweredByHeader',
'staticPageGenerationTimeout', 'staticPageGenerationTimeout',
'reactProductionProfiling',
'cleanDistDir',
'compiler.reactRemoveProperties', 'compiler.reactRemoveProperties',
'compiler.removeConsole', 'compiler.removeConsole',
'experimental.turbotrace', 'experimental.turbotrace',
...@@ -62,6 +74,12 @@ const prodSpecificTurboNextConfigOptions = [ ...@@ -62,6 +74,12 @@ const prodSpecificTurboNextConfigOptions = [
'experimental.outputFileTracingIgnores', 'experimental.outputFileTracingIgnores',
'experiemental.outputFileTracingIncludes', 'experiemental.outputFileTracingIncludes',
'experimental.gzipSize', 'experimental.gzipSize',
'experimental.useDeploymentId',
'experimental.useDeploymentIdServerActions',
'experimental.deploymentId',
'experimental.serverMinification',
'experimental.serverSourceMaps',
'experimenta.trustHostHeader',
] ]
// check for babelrc, swc plugins // check for babelrc, swc plugins
......
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