Open
Description
When creating an instance of InMemoryCacheHandler and providing it to ISRHandler, the instance isn't being used but instead the default handler. It seems the problem is that it checks that the provided handler is an instance of CacheHandler
which is false.
const cacheHandler = new InMemoryCacheHandler();
console.log(cacheHandler instanceof CacheHandler); // this returns false
const isr = new ISRHandler({
indexHtml,
invalidateSecretToken: 'helloworld', // replace with env secret key ex. process.env.REVALIDATE_SECRET_TOKEN
enableLogging: true,
cache: cacheHandler,
serverDistFolder,
browserDistFolder,
bootstrap,
commonEngine,
});
Environment
"@rx-angular/isr": "^17.1.0"
Metadata
Metadata
Assignees
Labels
No labels