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: plugin bootstrap (#2631)

Peng Xiao36978dbed616
diff --git a/apps/web/src/bootstrap/index.ts b/apps/web/src/bootstrap/index.ts
index e69de29bb2..ee69e28aee 100644
--- a/apps/web/src/bootstrap/index.ts
+++ b/apps/web/src/bootstrap/index.ts
@@ -0,0 +1,11 @@
+import { config, setupGlobal } from '@affine/env/config';
+
+setupGlobal();
+
+if (config.enablePlugin && !environment.isServer) {
+ import('@affine/copilot');
+}
+
+if (!environment.isServer) {
+ import('@affine/bookmark-block');
+}