mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 11:59:51 +08:00
feat: merge service (#14384)
This commit is contained in:
@@ -22,6 +22,7 @@ export enum Flavor {
|
||||
Graphql = 'graphql',
|
||||
Sync = 'sync',
|
||||
Renderer = 'renderer',
|
||||
Front = 'front',
|
||||
Doc = 'doc',
|
||||
Script = 'script',
|
||||
}
|
||||
@@ -108,6 +109,7 @@ export class Env implements AppEnv {
|
||||
graphql: this.isFlavor(Flavor.Graphql),
|
||||
sync: this.isFlavor(Flavor.Sync),
|
||||
renderer: this.isFlavor(Flavor.Renderer),
|
||||
front: this.FLAVOR === Flavor.Front,
|
||||
doc: this.isFlavor(Flavor.Doc),
|
||||
// Script in a special flavor, return true only when it is set explicitly
|
||||
script: this.FLAVOR === Flavor.Script,
|
||||
|
||||
Reference in New Issue
Block a user