mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 19:22:49 +03:00
fix: add bookmark operation flag for ts check (#2699)
This commit is contained in:
parent
84f68fc2c0
commit
fc658f4a95
6
packages/env/src/config.ts
vendored
6
packages/env/src/config.ts
vendored
@ -31,6 +31,7 @@ export const blockSuiteFeatureFlags = z.object({
|
||||
enable_slash_menu: z.boolean(),
|
||||
enable_edgeless_toolbar: z.boolean(),
|
||||
enable_linked_page: z.boolean(),
|
||||
enable_bookmark_operation: z.boolean(),
|
||||
});
|
||||
|
||||
export type BlockSuiteFeatureFlags = z.infer<typeof blockSuiteFeatureFlags>;
|
||||
@ -106,8 +107,8 @@ interface Desktop extends ChromeBrowser {
|
||||
|
||||
export type Environment = Browser | Server | Desktop;
|
||||
|
||||
export const env: Environment = (()=>{
|
||||
let environment = null
|
||||
export const env: Environment = (() => {
|
||||
let environment = null;
|
||||
const isDebug = process.env.NODE_ENV === 'development';
|
||||
if (typeof window === 'undefined' || typeof navigator === 'undefined') {
|
||||
environment = {
|
||||
@ -151,7 +152,6 @@ export const env: Environment = (()=>{
|
||||
return environment;
|
||||
})();
|
||||
|
||||
|
||||
function printBuildInfo() {
|
||||
console.group('Build info');
|
||||
console.log('Project:', config.PROJECT_NAME);
|
||||
|
Loading…
Reference in New Issue
Block a user