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 = [
'trailingSlash',
'i18n.locales',
'i18n.defaultLocale',
'sassOptions.includePaths',
'sassOptions',
'configOrigin',
'httpAgentOptions',
'useFileSystemPublicRoutes',
'generateEtags',
'assetPrefix',
'experimental.serverComponentsExternalPackages',
'experimental.turbo',
'experimental.mdxRs',
'experimental.forceSwcTransforms',
'experimental.serverActionsBodySizeLimit',
'experimental.memoryBasedWorkersCount',
// options below are not really supported, but ignored
'webpack',
'devIndicators',
'onDemandEntries',
'excludeDefaultMomentLocales',
'experimental.cpus',
'experimental.sharedPool',
'experimental.proxyTimeout',
'experimental.isrFlushToDisk',
'experimental.workerThreads',
'experimental.caseSensitiveRoutes',
'experimental.optimizePackageImports',
'experimental.optimizeServerReact',
]
// The following will need to be supported by `next build --turbo`
......@@ -54,6 +64,8 @@ const prodSpecificTurboNextConfigOptions = [
'optimizeFonts',
'poweredByHeader',
'staticPageGenerationTimeout',
'reactProductionProfiling',
'cleanDistDir',
'compiler.reactRemoveProperties',
'compiler.removeConsole',
'experimental.turbotrace',
......@@ -62,6 +74,12 @@ const prodSpecificTurboNextConfigOptions = [
'experimental.outputFileTracingIgnores',
'experiemental.outputFileTracingIncludes',
'experimental.gzipSize',
'experimental.useDeploymentId',
'experimental.useDeploymentIdServerActions',
'experimental.deploymentId',
'experimental.serverMinification',
'experimental.serverSourceMaps',
'experimenta.trustHostHeader',
]
// 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