perf: getEnvironment() -> env (#2636)

This commit is contained in:
Simon He authored and GitHub committed 2023-06-01 03:23:38 +00:00
1 parent e1314730be
commit fc9462eee9
16 files changed
+70 -86

No files matched your search

+1 -2
View File
@@ -1,8 +1,7 @@
import { getEnvironment } from '@affine/env';
import { env } from '@affine/env';
import debug from 'debug';
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
const env = getEnvironment();
const SESSION_KEY = 'affine:debug';
const development = env.isDebug;