mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53: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'
|
'@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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue