PDF generating server action dies at the same point in production, is maxDuration even respected for actions
Next 15 app router deployed on Vercel. The action renders a PDF and uploads it, which takes 45 to 90 seconds locally depending on the document. In production it fails part way with no useful error, and my attempt to add export const maxDuration to the actions file broke the build. Two of us, and this is the last thing before launch.
@two_vcpu_club · 2d ago
Worth checking the project level default too, since a lot of people are running with an old value they set once. In the current docs the platform default duration is five minutes on every plan with fluid compute, with a higher ceiling on paid plans, and there is a per function extended duration option in beta that goes considerably further. But your project settings can override that downward, and dashboard settings under Functions is where a forgotten fifteen second default hides. Check what your project says before assuming the platform is the constraint.
Reply
Report