Skip to content

Commit 50ed454

Browse files
authored
docs: fix config variable usage in memory docs (#64469)
Closes vercel/feedback#61864
1 parent 2a605af commit 50ed454

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)