next.js
4e809908 - Use provided waitUntil for pending revalidates (#74164)

Commit
1 year ago
Use provided waitUntil for pending revalidates (#74164) Currently we are using `pendingWaitUntil` on `renderOpts` to handle pending revalidations (fetch updates and revalidate tag calls). This uses our old strategy of `waitUntil` inside of `sendResponse` which just keeps the stream open until the promise resolves. This isn't ideal if we have a proper waitUntil strategy provided so this updates to ensure we use that instead if available. Also adds some debug logs so we can track when this pending revalidates promise is resolved.
Author
Parents
Loading