Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: multiple yjs in debug local mode (#1276)

Himself65ec5d8ca1796a
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index c2dfa59896..1e3753d3f9 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -84,6 +84,7 @@ const nextConfig = {
test: /\.md$/i,
loader: 'raw-loader',
});
+ config.resolve.alias['yjs'] = require.resolve('yjs');
if (!isServer && !dev) {
config.devtool = 'hidden-nosources-source-map';