Skip to content

Commit

Permalink
chore: remove yjs resolve (makeplane#5301)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 authored Aug 5, 2024
1 parent 42462c7 commit dd806df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions web/next.config.js
Original file line number Diff line number Diff line change
@@ -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")({
Expand Down Expand Up @@ -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 [
{
Expand Down

0 comments on commit dd806df

Please sign in to comment.