Switch to Custom Cache Handler

This commit is contained in:
Ahmad 2025-01-25 23:05:01 -05:00
parent 8900584267
commit 5ef2a3c67f
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
4 changed files with 34 additions and 78 deletions

View file

@ -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') {