mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
chore: disable local build info log
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import getConfig from 'next/config';
|
import getConfig from 'next/config';
|
||||||
// import { isDev } from './env';
|
import { isDev } from './env';
|
||||||
type Config = {
|
type Config = {
|
||||||
BUILD_DATE: string;
|
BUILD_DATE: string;
|
||||||
NODE_ENV: string;
|
NODE_ENV: string;
|
||||||
@@ -14,6 +14,9 @@ const nextConfig = getConfig();
|
|||||||
const publicRuntimeConfig: Config = nextConfig.publicRuntimeConfig;
|
const publicRuntimeConfig: Config = nextConfig.publicRuntimeConfig;
|
||||||
|
|
||||||
const printBuildInfo = () => {
|
const printBuildInfo = () => {
|
||||||
|
if (isDev) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
console.group('Build info');
|
console.group('Build info');
|
||||||
console.log('Project:', publicRuntimeConfig.PROJECT_NAME);
|
console.log('Project:', publicRuntimeConfig.PROJECT_NAME);
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
Reference in New Issue
Block a user