chore: disable local build info log

This commit is contained in:
tzhangchi 2023-01-02 01:17:08 +08:00 committed by Chi Zhang
parent 42ac45fe15
commit ca5bde9730

View File

@ -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(