Skip to content

Commit

Permalink
micro fix of the cache limit check
Browse files Browse the repository at this point in the history
  • Loading branch information
vordgi committed Jan 5, 2024
1 parent 8ae1167 commit 5d151dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/lib/incremental-cache/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export class IncrementalCache implements IncrementalCacheType {
ctx.fetchCache &&
// we don't show this error/warning when a custom cache handler is being used
// as it might not have this limit
this.hasCustomCacheHandler &&
!this.hasCustomCacheHandler &&
JSON.stringify(data).length > 2 * 1024 * 1024
) {
if (this.dev) {
Expand Down

0 comments on commit 5d151dd

Please sign in to comment.