mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
build: improve logs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user