Added Redis for Caching and Started Database Query Caching Migration to Redis

This commit is contained in:
Ahmad 2025-01-18 19:14:19 -05:00
parent f99360d9b9
commit 0f899cb34f
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
12 changed files with 260 additions and 632 deletions

View file

@ -9,6 +9,7 @@ const nextConfig: NextConfig = {
reactCompiler: true,
mdxRs: true,
webpackMemoryOptimizations: true,
webpackBuildWorker: true,
},
images: {
remotePatterns: [
@ -50,6 +51,10 @@ const nextConfig: NextConfig = {
return config;
},
cacheHandler:
process.env.NODE_ENV === 'production'
? require.resolve('./cache-handler.ts')
: undefined,
};
const withMDX = createMDX({});