Skip to content

Commit

Permalink
Fix typo in memory usage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 5, 2024
1 parent 28110b6 commit dc40cc9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Let's explore some strategies and techniques to optimize memory and address comm

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

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.
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.

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

Expand Down Expand Up @@ -72,11 +72,11 @@ const nextConfig = {
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => {
if (cfg.cache && !dev) {
cfg.cache = Object.freeze({
if (config.cache && !dev) {
config.cache = Object.freeze({
type: 'memory',
})
cfg.cache.maxMemoryGenerations = 0
config.cache.maxMemoryGenerations = 0
}
// Important: return the modified config
return config
Expand Down

0 comments on commit dc40cc9

Please sign in to comment.