From be70b889255bd5b0ace830585c733feca909df93 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Sun, 19 Jan 2025 01:14:55 -0500 Subject: [PATCH] Fix Build Issues --- cache-handler.mts => cache-handler.mjs | 0 next.config.ts | 2 +- tsconfig.json | 8 +------- 3 files changed, 2 insertions(+), 8 deletions(-) rename cache-handler.mts => cache-handler.mjs (100%) diff --git a/cache-handler.mts b/cache-handler.mjs similarity index 100% rename from cache-handler.mts rename to cache-handler.mjs diff --git a/next.config.ts b/next.config.ts index 45e0e8a..2045ae2 100644 --- a/next.config.ts +++ b/next.config.ts @@ -53,7 +53,7 @@ const nextConfig: NextConfig = { }, cacheHandler: process.env.NODE_ENV === 'production' - ? require.resolve('./cache-handler.mts') + ? require.resolve('./cache-handler.mjs') : undefined, }; diff --git a/tsconfig.json b/tsconfig.json index 1e47579..3580385 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,12 +24,6 @@ }, "forceConsistentCasingInFileNames": true }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - "cache-handler.mts" - ], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] }