mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Switch to Custom Cache Handler
This commit is contained in:
parent
8900584267
commit
5ef2a3c67f
4 changed files with 34 additions and 78 deletions
|
@ -3,14 +3,6 @@ import * as Sentry from '@sentry/nextjs';
|
|||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||
await import('./sentry.server.config');
|
||||
|
||||
const { registerInitialCache } = await import(
|
||||
'@neshca/cache-handler/instrumentation'
|
||||
);
|
||||
|
||||
const CacheHandler = (await import('./cache-handler.mjs')).default;
|
||||
|
||||
await registerInitialCache(CacheHandler);
|
||||
}
|
||||
|
||||
if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue