Serverless Pre-Rendering

Speeding up serverless function response times in deployments like in Vercel

Extracted from the following link.

Just add the following code where you can access the response object.


Set the s-maxage value according to how long you want the CDN to cache the response (in seconds).

If you enjoyed this post please leave a like or two below!!!