Skip to content

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎docs/02-app/01-building-your-application/06-optimizing/13-memory-usage.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Let's explore some strategies and techniques to optimize memory and address comm
1111

1212
Applications with a large amount of dependencies will use more memory.
1313

14-
The [Bundle Analyzer](/docs/app/building-your-application/optimizing/bundle-analyzer) can help you investigate large dependencies in your application that may be able to be removed to improve performance and memory usage.
14+
The [Bundle Analyzer](/docs/app/building-your-application/optimizing/package-bundling#analyzing-javascript-bundles) can help you investigate large dependencies in your application that may be able to be removed to improve performance and memory usage.
1515

1616
## Run `next build` with `--experimental-debug-memory-usage`
1717

@@ -72,11 +72,11 @@ const nextConfig = {
7272
config,
7373
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
7474
) => {
75-
if (cfg.cache && !dev) {
76-
cfg.cache = Object.freeze({
75+
if (config.cache && !dev) {
76+
config.cache = Object.freeze({
7777
type: 'memory',
7878
})
79-
cfg.cache.maxMemoryGenerations = 0
79+
config.cache.maxMemoryGenerations = 0
8080
}
8181
// Important: return the modified config
8282
return config

0 commit comments

Comments
 (0)
Please sign in to comment.