Possible to store into CacheHandler during build (npm run build) ? #436
Unanswered
AlexandreBourdeaudhui
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello @AlexandreBourdeaudhui! I apologize for the delay in getting back to you. If your Redis server is up and running before the build process, Opting out of caching during the build is a straightforward process. Simply refer to the documentation section that outlines the steps. Conversely, to enable caching, it's important not to create the Redis Handler conditionally. Please let me know if you have any further questions or concerns. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i think no, but i'm trying.
I want to know if it is possible to store the fetched data, during the build of Nextjs (
yarn run build
), into the Redis CacheHandler ?I ask it because when building, it is stored in the filesystem (on disk). Once online, the user triggers the redis cache when visits a page and the data stored in the disk is not longer used ?
FYI: When the app is live, it is on 2 containers/pod. We're using the ISR with a Redis CacheHandler for not building twice on disk (in each container), on (ondemand-)revalidation.
Beta Was this translation helpful? Give feedback.
All reactions