Complete overhaul - changed to pm2-runtime and the excellent prerender-plugin-fscache. Working excellently!

This commit is contained in:
2025-02-22 04:05:47 -05:00
parent 85336a52f9
commit b28d11474e
7 changed files with 82 additions and 363 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ const server = prerender({
logRequests: true,
browserDebuggingPort: 9222,
});
server.use(require('prerender-memory-cache'))
server.use(require("prerender-plugin-fscache")); // allows pm2 instances to live happily since written to filesystem
server.use(prerender.httpHeaders());
server.use(prerender.removeScriptTags());
server.use(prerender.sendPrerenderHeader());