Commit dc40cc94 authored by JJ Kasper's avatar JJ Kasper

Fix typo in memory usage docs

parent 28110b6a
......@@ -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`
......@@ -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
......
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