Fix Build Issues

This commit is contained in:
Ahmad 2025-01-19 01:09:20 -05:00
parent 23751c9b49
commit fe7ceb60b2
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
4 changed files with 9 additions and 3 deletions

View file

@ -8,7 +8,7 @@ export async function register() {
'@neshca/cache-handler/instrumentation' '@neshca/cache-handler/instrumentation'
); );
const CacheHandler = (await import('./cache-handler')).default; const CacheHandler = (await import('./cache-handler.mjs')).default;
await registerInitialCache(CacheHandler); await registerInitialCache(CacheHandler);
} }

View file

@ -53,7 +53,7 @@ const nextConfig: NextConfig = {
}, },
cacheHandler: cacheHandler:
process.env.NODE_ENV === 'production' process.env.NODE_ENV === 'production'
? require.resolve('./cache-handler') ? require.resolve('./cache-handler.mts')
: undefined, : undefined,
}; };

View file

@ -24,6 +24,12 @@
}, },
"forceConsistentCasingInFileNames": true "forceConsistentCasingInFileNames": true
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"cache-handler.mts"
],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }