Unverified Commit a1840471 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add env for setting cache handler path (#70537)

As discussed this allows customizing the cache handler via env instead
of only in `next.config`.
parent 13dc49e5
......@@ -959,7 +959,7 @@ export const defaultConfig: NextConfig = {
distDir: '.next',
cleanDistDir: true,
assetPrefix: '',
cacheHandler: undefined,
cacheHandler: process.env.NEXT_CACHE_HANDLER_PATH,
// default to 50MB limit
cacheMaxMemorySize: 50 * 1024 * 1024,
configOrigin: 'default',
......
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