Override default file based cache location #72855
jordan-edrop
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Non-Goals
No response
Background
We are self hosting a Docker image that is deployed to multiple clusters, but this results in two independent caches that is difficult to keep in sync.
This is addressed in the docs here
However you have to create a custom cache implementation. The docs are a little disingenuous with the example, and in reality the NextJS cache is full of internal logic that if you don't replicate will miss out on features.
The current workaround is to copy this file, change the file system path to point to the shared storage. However this is just an internal file to NextJS and is frequently updated with no actual documentation, as it is not treated as a public facing API
Proposal
Add the ability via
next.config.js
to specify the path used by the file-system-cacheBeta Was this translation helpful? Give feedback.
All reactions