Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: disable local build info log

tzhangchica5bde9730ba
diff --git a/packages/app/src/utils/print-build-info.ts b/packages/app/src/utils/print-build-info.ts
index 766a1990ab..5cbe74e71b 100644
--- a/packages/app/src/utils/print-build-info.ts
+++ b/packages/app/src/utils/print-build-info.ts
@@ -1,5 +1,5 @@
import getConfig from 'next/config';
-// import { isDev } from './env';
+import { isDev } from './env';
type Config = {
BUILD_DATE: string;
NODE_ENV: string;
@@ -14,6 +14,9 @@ const nextConfig = getConfig();
const publicRuntimeConfig: Config = nextConfig.publicRuntimeConfig;
const printBuildInfo = () => {
+ if (isDev) {
+ return;
+ }
console.group('Build info');
console.log('Project:', publicRuntimeConfig.PROJECT_NAME);
console.log(