build: improve logs

This commit is contained in:
himself65
2023-04-03 18:40:07 -05:00
parent 9a20f50b05
commit 2f3a13c439

View File

@@ -76,6 +76,10 @@ const nextConfig = {
'@affine/debug',
'@affine/env',
'@affine/templates',
'@toeverything/hooks',
'@affine/workspace',
'@affine/jotai',
'@toeverything/y-indexeddb',
],
publicRuntimeConfig: {
PROJECT_NAME: process.env.npm_package_name ?? 'AFFiNE',
@@ -177,4 +181,12 @@ if (process.env.SENTRY_AUTH_TOKEN) {
delete config.sentry;
}
if (process.env.PERFSEE_TOKEN) {
console.info('perfsee token found.');
} else {
console.warn(
'perfsee token not found. performance monitoring will be disabled.'
);
}
export default config;