Unverified Commit 50ed4542 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

docs: fix config variable usage in memory docs (#64469)

Closes https://github.com/vercel/feedback/issues/61864
parent 2a605af1
...@@ -72,11 +72,11 @@ const nextConfig = { ...@@ -72,11 +72,11 @@ const nextConfig = {
config, config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => { ) => {
if (cfg.cache && !dev) { if (config.cache && !dev) {
cfg.cache = Object.freeze({ config.cache = Object.freeze({
type: 'memory', type: 'memory',
}) })
cfg.cache.maxMemoryGenerations = 0 config.cache.maxMemoryGenerations = 0
} }
// Important: return the modified config // Important: return the modified config
return 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