Skip to content

Commit

Permalink
Add env for setting cache handler path (#70537)
Browse files Browse the repository at this point in the history
As discussed this allows customizing the cache handler via env instead
of only in `next.config`.
  • Loading branch information
ijjk authored Sep 26, 2024
1 parent 13dc49e commit a184047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a184047

Please sign in to comment.