mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
build: use PerfseePlugin only when token provided
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user