We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2ca54 commit 9ae21caCopy full SHA for 9ae21ca
libs/isr/server/src/isr-handler.ts
@@ -223,14 +223,7 @@ export class ISRHandler {
223
}
224
225
226
- // Apply the callback if given
227
- if (config?.modifyCachedHtml) {
228
- const timeStart = performance.now();
229
- finalHtml = config.modifyCachedHtml(req, finalHtml);
230
- const totalTime = (performance.now() - timeStart).toFixed(2);
231
- finalHtml += `<!--\nℹ️ ISR: This cachedHtml has been modified with modifyCachedHtml()\n❗️
232
- This resulted into more ${totalTime}ms of processing time.\n-->`;
233
- }
+
234
return res.send(finalHtml);
235
} catch (error) {
236
// Cache does not exist. Serve user using SSR
0 commit comments