rsnext/test/e2e/app-dir/app-static
Alexander Savelyev 269020a028
Disable 2mb limit for custom incrementalCacheHandler (#59976)
### Fixing a bug

### What?

Disable 2MB limit for custom incrementalCacheHandler

### Why?

The limit is necessary because `FetchCache` has a 2MB limit, but it
seems there was a miscommunication regarding the key coincidence, where
`fetchCache` is a flag indicating that the method is called from fetch,
rather than indicating that the `FetchCache` Provider is currently being
used.

We do not use Vercel, and as I understand it, we do not have the
opportunity to use this functionality.

In any case, it is more important for us to increase the limits, and in
some cases, using a file storage is even preferable.

### How?

I have created a flag that determines whether the use of `FetchCache` is
possible at least in theory - if no custom provider is passed, and
additionally configured it so that it is not an implementation of
`FetchCache` as a protection against special individuals (*like me :)*).

If everything is fine, I will write proper tests.

Also, I would like to recommend making `FileSystemCache` public (_i.e.
support it as public functionality_) so that it can be imported and
extended or simply used to fix only it.

Fixes #48324 (partially)

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2024-01-04 15:12:43 -08:00
..
app Disable 2mb limit for custom incrementalCacheHandler (#59976) 2024-01-04 15:12:43 -08:00
lib Enable PPR for dynamic = "force-dynamic" (#58779) 2023-12-06 01:10:00 +00:00
pages Handle unstable_cache in pages (#49624) 2023-05-10 13:59:48 -07:00
.env.development Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
app-static-custom-handler.test.ts fix: custom incremental cache handlers should work when transpiled (#54472) 2023-08-24 03:48:30 +00:00
app-static.test.ts Disable 2mb limit for custom incrementalCacheHandler (#59976) 2024-01-04 15:12:43 -08:00
cache-handler-default-export.js fix: custom incremental cache handlers should work when transpiled (#54472) 2023-08-24 03:48:30 +00:00
cache-handler.js Update app cache handler loading (#46290 2023-02-23 01:19:59 -08:00
next.config.js Should not show no index for client rendering bailout (#59531) 2023-12-13 11:03:11 +01:00