refactor: use unified isDev variable

This commit is contained in:
tzhangchi
2022-12-18 13:12:50 +08:00
parent 6627444036
commit 602d8163f5
+2 -2
View File
@@ -1,5 +1,5 @@
import getConfig from 'next/config';
import { isDev } from './env';
type Config = {
BUILD_DATE: string;
NODE_ENV: string;
@@ -13,7 +13,7 @@ const nextConfig = getConfig();
const publicRuntimeConfig: Config = nextConfig.publicRuntimeConfig;
const printBuildInfo = () => {
if (process.env.NODE_ENV === 'development') {
if (isDev) {
return;
}
console.group('Build info');