You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The irony is brutal - Payload is marketed as a "Next.js-native CMS" and Vercel is the default deploy target — but the combination of cacheComponents and PPR creates a structural trap:
Payload's getPayload() init is heavy by design (Drizzle schema, DB connection, collection setup, Lexical editor)
PPR + cacheComponents works so well that the Lambda never gets traffic, so Vercel can't keep it warm
The better your caching, the colder your functions, the worse your first interaction (I'm getting upwards of 20 seconds latency on some page loads)
There is a fundamental tension between "cache everything to the CDN" and "serverless needs traffic to stay alive."
Sure, I could do something like the cron hack to keep the lambda warm, but there is still that heavy initial hit after a redeploy.
I solved it by deploying to Railway instead, which sidesteps the whole problem: one persistent process, always warm, no tradeoffs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The irony is brutal - Payload is marketed as a "Next.js-native CMS" and Vercel is the default deploy target — but the combination of cacheComponents and PPR creates a structural trap:
There is a fundamental tension between "cache everything to the CDN" and "serverless needs traffic to stay alive."
Sure, I could do something like the cron hack to keep the lambda warm, but there is still that heavy initial hit after a redeploy.
I solved it by deploying to Railway instead, which sidesteps the whole problem: one persistent process, always warm, no tradeoffs.
Beta Was this translation helpful? Give feedback.
All reactions