Replies: 1 comment 2 replies
-
@ptpittman hello! What version of the lib do you use? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I'm running a a nextjs 14 app dir app, pre-building approximately 1000 pages at deployment time. I'm trying to set things up with the new experimental.instrumentationHook file to bring these pre-builds over into the custom redis cache.
Without the cache handler set, at build time these are stored on disk as you'd expect in .next/cache/fetch-cache. However, when I set my custom cache handler to my ever so slightly tweaked version of the documented redis handler, regardless of whether the instrumentation hook is also set, this cache is simply not created at build time. With the custom handler enabled, the only folders in .next/cache are "swc" and "webpack" after build completes.
Is there something I'm meant to do in the cache handler to ensure the fetch cache gets written to disk?
At the end of my cache-handler.js, I'm returning:
But that useFileSystem doesn't seem to do anything. Perhaps I have it in the wrong place? Posting this as a discussion and not a bug, as I'm sure this is probably user error....
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions