mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-30 16:43:37 +00:00
Fix Build Issues
This commit is contained in:
parent
23751c9b49
commit
fe7ceb60b2
4 changed files with 9 additions and 3 deletions
|
@ -8,7 +8,7 @@ export async function register() {
|
|||
'@neshca/cache-handler/instrumentation'
|
||||
);
|
||||
|
||||
const CacheHandler = (await import('./cache-handler')).default;
|
||||
const CacheHandler = (await import('./cache-handler.mjs')).default;
|
||||
|
||||
await registerInitialCache(CacheHandler);
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ const nextConfig: NextConfig = {
|
|||
},
|
||||
cacheHandler:
|
||||
process.env.NODE_ENV === 'production'
|
||||
? require.resolve('./cache-handler')
|
||||
? require.resolve('./cache-handler.mts')
|
||||
: undefined,
|
||||
};
|
||||
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
},
|
||||
"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"]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue