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 = {
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