From dd806dfa2f343f8b391fa6253356ebe68a447746 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:30:17 +0530 Subject: [PATCH] chore: remove yjs resolve (#5301) --- web/next.config.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/next.config.js b/web/next.config.js index d933b006e..47b81e087 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-var-requires */ /** @type {import("next").NextConfig} */ require("dotenv").config({ path: ".env" }); -const path = require("path"); +// const path = require("path"); const { withSentryConfig } = require("@sentry/nextjs"); const withPWA = require("next-pwa")({ @@ -37,13 +37,13 @@ const nextConfig = { ], unoptimized: true, }, - webpack: (config, { isServer }) => { - if (!isServer) { - // Ensure that all imports of 'yjs' resolve to the same instance - config.resolve.alias["yjs"] = path.resolve(__dirname, "node_modules/yjs"); - } - return config; - }, + // webpack: (config, { isServer }) => { + // if (!isServer) { + // // Ensure that all imports of 'yjs' resolve to the same instance + // config.resolve.alias["yjs"] = path.resolve(__dirname, "node_modules/yjs"); + // } + // return config; + // }, async redirects() { return [ {