Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe0bac2

Browse files
committed
feat(isr): enable background revalidation and non-blocking render
1 parent dcc61f9 commit fe0bac2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/ssr-isr/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export function app(): express.Express {
3131
browserDistFolder,
3232
bootstrap,
3333
commonEngine,
34+
backgroundRevalidation: true, // will revalidate in background and serve the cache page first
35+
nonBlockingRender: true, // will serve page first and store in cache in background
3436
modifyGeneratedHtml: customModifyGeneratedHtml,
3537
// cache: fsCacheHandler,
3638
});

0 commit comments

Comments
 (0)