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.

build: use `PerfseePlugin` only when token provided

himself654c6505cdf2ca
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index d14e65738e..4ff63a6238 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -91,7 +91,7 @@ const nextConfig = {
});
config.resolve.alias['yjs'] = require.resolve('yjs');
- if (!isServer && !dev) {
+ if (!isServer && !dev && process.env.PERFSEE_TOKEN) {
config.devtool = 'hidden-nosources-source-map';
const perfsee = new PerfseePlugin({
project: 'affine-toeverything',