Next.js standalone deployment prefetch response 500 #87014
-
SummaryIn production, prefetch request cause above error. is suspicious.Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
ezeparziale
Dec 12, 2025
Replies: 1 comment 6 replies
-
|
I am getting the same error with 16.0.8 and custom cache-handler.mjs in standalone mode. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I realized that cacheHandler can’t be used when cacheComponents: true is enabled. In that case, you need to use cacheHandlers instead, defining both the default handler and the remote one.
What I’m not fully sure about now is whether both approaches can be used together or what the recommended pattern is, especially when running the cache on a self-hosted Redis instance.
Also, when using cacheHandlers with a custom default handler, it seems that revalidatePath no longer works. It looks like only updateTag works, because revalidatePath expects the N_T/page tag to exist — and that tag is not stored when using cacheHandlers.
References:
https://nextjs.org/docs/app/api-reference/config/next-c…