build: use PerfseePlugin only when token provided

This commit is contained in:
himself65
2023-03-27 23:05:49 -05:00
parent 7fb5b1f65b
commit 4c6505cdf2

View File

@@ -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',