Skip to content

Commit bad5365

Browse files
padmaiaijjk
andauthored
Update supported config options for Turbopack (#55556)
Closes WEB-1600 Co-authored-by: JJ Kasper <[email protected]>
1 parent 8881c41 commit bad5365

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

packages/next/src/lib/turbopack-warning.ts

+19-1
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,31 @@ const supportedTurbopackNextConfigOptions = [
2323
'trailingSlash',
2424
'i18n.locales',
2525
'i18n.defaultLocale',
26-
'sassOptions.includePaths',
26+
'sassOptions',
27+
'configOrigin',
28+
'httpAgentOptions',
29+
'useFileSystemPublicRoutes',
30+
'generateEtags',
31+
'assetPrefix',
2732
'experimental.serverComponentsExternalPackages',
2833
'experimental.turbo',
2934
'experimental.mdxRs',
3035
'experimental.forceSwcTransforms',
36+
'experimental.serverActionsBodySizeLimit',
37+
'experimental.memoryBasedWorkersCount',
3138
// options below are not really supported, but ignored
3239
'webpack',
3340
'devIndicators',
3441
'onDemandEntries',
42+
'excludeDefaultMomentLocales',
3543
'experimental.cpus',
3644
'experimental.sharedPool',
3745
'experimental.proxyTimeout',
3846
'experimental.isrFlushToDisk',
3947
'experimental.workerThreads',
4048
'experimental.caseSensitiveRoutes',
49+
'experimental.optimizePackageImports',
50+
'experimental.optimizeServerReact',
4151
]
4252

4353
// The following will need to be supported by `next build --turbo`
@@ -54,6 +64,8 @@ const prodSpecificTurboNextConfigOptions = [
5464
'optimizeFonts',
5565
'poweredByHeader',
5666
'staticPageGenerationTimeout',
67+
'reactProductionProfiling',
68+
'cleanDistDir',
5769
'compiler.reactRemoveProperties',
5870
'compiler.removeConsole',
5971
'experimental.turbotrace',
@@ -62,6 +74,12 @@ const prodSpecificTurboNextConfigOptions = [
6274
'experimental.outputFileTracingIgnores',
6375
'experiemental.outputFileTracingIncludes',
6476
'experimental.gzipSize',
77+
'experimental.useDeploymentId',
78+
'experimental.useDeploymentIdServerActions',
79+
'experimental.deploymentId',
80+
'experimental.serverMinification',
81+
'experimental.serverSourceMaps',
82+
'experimenta.trustHostHeader',
6583
]
6684

6785
// check for babelrc, swc plugins

0 commit comments

Comments
 (0)