mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-25 08:02:10 +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_slash_menu: z.boolean(),
|
||||||
enable_edgeless_toolbar: z.boolean(),
|
enable_edgeless_toolbar: z.boolean(),
|
||||||
enable_linked_page: z.boolean(),
|
enable_linked_page: z.boolean(),
|
||||||
|
enable_bookmark_operation: z.boolean(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type BlockSuiteFeatureFlags = z.infer<typeof blockSuiteFeatureFlags>;
|
export type BlockSuiteFeatureFlags = z.infer<typeof blockSuiteFeatureFlags>;
|
||||||
@ -106,8 +107,8 @@ interface Desktop extends ChromeBrowser {
|
|||||||
|
|
||||||
export type Environment = Browser | Server | Desktop;
|
export type Environment = Browser | Server | Desktop;
|
||||||
|
|
||||||
export const env: Environment = (()=>{
|
export const env: Environment = (() => {
|
||||||
let environment = null
|
let environment = null;
|
||||||
const isDebug = process.env.NODE_ENV === 'development';
|
const isDebug = process.env.NODE_ENV === 'development';
|
||||||
if (typeof window === 'undefined' || typeof navigator === 'undefined') {
|
if (typeof window === 'undefined' || typeof navigator === 'undefined') {
|
||||||
environment = {
|
environment = {
|
||||||
@ -151,7 +152,6 @@ export const env: Environment = (()=>{
|
|||||||
return environment;
|
return environment;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
function printBuildInfo() {
|
function printBuildInfo() {
|
||||||
console.group('Build info');
|
console.group('Build info');
|
||||||
console.log('Project:', config.PROJECT_NAME);
|
console.log('Project:', config.PROJECT_NAME);
|
||||||
|
Loading…
Reference in New Issue
Block a user