Replies: 1 comment
-
|
This is good input. I wonder if you can try to take it through the support so that we can take a look at the project? I also wonder if the cache key is somehow getting out hand in this instance? It'd be nice if we could debug a bit more. Are you able to build locally though? |
Beta Was this translation helpful? Give feedback.
0 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.
-
Summary
Hello!
I have a large Next.js project currently on v15.5.6 and a branch that updates it to v16.0.4. In v16.0.4, when
cacheComponentsis disabled, the project deploys to Vercel without issues.After enabling
cacheComponents, I removed deprecated features (dynamicParams,revalidate, etc) and added the requiredSuspenseboundaries. The project builds and runs successfully locally, but Vercel fails during the build with aSIGKILL OOMerror.Next, I tried adding caching to one of my pages that generates around 1527 static paths, using
use cachein my fetch helper. With this change, the Vercel build progresses further, but eventually got stuck withRangeError: Invalid string length. It seems like enabling component caching significantly increases memory usage or the size of the serialized data at build time.Is there something extra I need to configure after enabling cacheComponents in order to deploy successfully to Vercel?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions