diff --git a/apps/web/cache-handler.mjs b/apps/web/cache-handler_alt.mjs similarity index 100% rename from apps/web/cache-handler.mjs rename to apps/web/cache-handler_alt.mjs diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index 0c7ba46979..95e5d14d22 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -5,7 +5,7 @@ import { createRequire } from "node:module"; import { fileURLToPath } from "node:url"; const jiti = createJiti(fileURLToPath(import.meta.url)); -const require = createRequire(import.meta.url); +// const require = createRequire(import.meta.url); jiti("@formbricks/lib/env"); @@ -157,9 +157,9 @@ const nextConfig = { }; // set custom cache handler -if (process.env.CUSTOM_CACHE_DISABLED !== "1") { +/* if (process.env.CUSTOM_CACHE_DISABLED !== "1") { nextConfig.cacheHandler = require.resolve("./cache-handler.mjs"); -} +} */ // set actions allowed origins if (process.env.WEBAPP_URL) {