Skip to main content Module next_config Copy item path Source CacheHandlersMap This is a transparent value type wrapping FxIndexMap<RcStr,RcStr> . CacheKinds This is a transparent value type wrapping [FxHashSet<RcStr>]. ChunkingHeuristics ChunkingHeuristicsConfig experimental.chunkingHeuristics: hints for Turbopack’s production chunker.CompilerConfig CssChunkingGraphOptions Cost parameters for the graph algorithm. See CssChunkingConfig for details. DevIndicatorsOptions DomainLocale ExperimentalConfig Header HeaderValue I18NConfig IgnoreIssues This is a transparent value type wrapping [Box<[IgnoreIssue]>]. ImageConfig JsConfig A subset of ts/jsconfig that next.js implicitly
interops with. LightningCssFeatures ModularizeImports This is a transparent value type wrapping FxIndexMap<String,ModularizeImportPackageConfig> . NextConfig OptionFileSystemPath This is a transparent value type wrapping Option<FileSystemPath> . OptionI18NConfig This is a transparent value type wrapping Option<I18NConfig> . OptionJsonValue This is a transparent value type wrapping Option<serde_json::Value> . OptionOutputType This is a transparent value type wrapping Option<OutputType> . OptionSubResourceIntegrity This is a transparent value type wrapping Option<SubResourceIntegrity> . OptionSwcEnvOptions This is a transparent value type wrapping Option<SwcEnvOptions> . OptionalMdxTransformOptions This is a transparent value type wrapping Option<ResolvedVc<MdxTransformOptions>> . OptionalReactCompilerOptions This is a transparent value type wrapping Option<ResolvedVc<ReactCompilerOptions>> . OutputFileTracingIncludesExcludes This is a transparent value type wrapping FxIndexMap<ResolvedVc<Glob>,Vec<(RcStr,FileSystemPath)>> . ReactCompilerOptions Subset of react compiler options, we pass these options through to the webpack loader, so it
must be serializable Redirect RegexComponents RemotePattern ResolveExtensions This is a transparent value type wrapping Option<Vec<RcStr>> . Rewrite Rewrites RuleConfigCollection RuleConfigItem ServerActions SubResourceIntegrity SwcEnvOptions Options for SWC’s preset-env, exposed via experimental.swcEnvOptions. SwcPlugins This is a transparent value type wrapping Vec<(RcStr,serde_json::Value)> . TurbopackConfig TurbopackIgnoreIssueRule A single rule in turbopack.ignoreIssue. TypeScriptConfig BuildActivityPositions ConfigConditionContentType ConfigConditionItem ConfigConditionPath This type should not be hand-written, but instead packages/next/src/build/swc/index.ts will
transform a JS RegExp to a RegexComponents or a string to a Glob before passing it to us. ConfigConditionQuery CssChunkingConfig experimental.cssChunking accepts the following shapes (all normalized to a single canonical
object form via CssChunkingConfig::normalize ):CssChunkingMode String shorthand variants for CssChunkingConfig . CssChunkingObject Object form of experimental.cssChunking. DevIndicatorsConfig EmotionTransformOptionsOrBoolean EsmExternals EsmExternalsValue ImageFormat ImageLoader LoaderItem MdxRsOptions MiddlewarePrefetchType ModuleIds OutputType ReactCompilerOptionsOrBoolean ReactCompilerPanicThreshold ReactRemoveProperties RedirectStatus RemotePatternProtocol RemoveConsoleConfig RouteHas RuleConfigCollectionItem ServerActionsOrLegacyBool SizeLimit StyledComponentsTransformOptionsOrBoolean TurbopackIgnoreIssuePathPattern Serialized representation of a path pattern for turbopack.ignoreIssue.
Strings are serialized as { "type": "glob", "value": "..." } and
RegExp as { "type": "regex", "source": "...", "flags": "..." }. TurbopackIgnoreIssueTextPattern Serialized representation of a text pattern (title/description) for
turbopack.ignoreIssue. Strings are serialized as
{ "type": "string", "value": "..." } and RegExp as
{ "type": "regex", "source": "...", "flags": "..." }. TurbopackPluginRuntimeStrategy DIST_PROFILES_DIR_NAME Name of the directory at the project root where CPU profiles are written when profiling is
enabled (see the --cpu-prof CLI flag). It is a fixed-name sibling of distDir, not
configurable. Kept here so the bundler and the napi bindings agree on the path. lightningcss_feature_names_to_mask Convert dash-case feature name strings to a lightningcss Features bitmask.