mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-21 16:26:58 +08:00
build: improve logs
This commit is contained in:
@@ -76,6 +76,10 @@ const nextConfig = {
|
|||||||
'@affine/debug',
|
'@affine/debug',
|
||||||
'@affine/env',
|
'@affine/env',
|
||||||
'@affine/templates',
|
'@affine/templates',
|
||||||
|
'@toeverything/hooks',
|
||||||
|
'@affine/workspace',
|
||||||
|
'@affine/jotai',
|
||||||
|
'@toeverything/y-indexeddb',
|
||||||
],
|
],
|
||||||
publicRuntimeConfig: {
|
publicRuntimeConfig: {
|
||||||
PROJECT_NAME: process.env.npm_package_name ?? 'AFFiNE',
|
PROJECT_NAME: process.env.npm_package_name ?? 'AFFiNE',
|
||||||
@@ -177,4 +181,12 @@ if (process.env.SENTRY_AUTH_TOKEN) {
|
|||||||
delete config.sentry;
|
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;
|
export default config;
|
||||||
|
|||||||
Reference in New Issue
Block a user