feat: merge service (#14384)

This commit is contained in:
DarkSky
2026-02-07 04:52:25 +08:00
committed by GitHub
parent a0cf5681c4
commit 1a2410f541
49 changed files with 966 additions and 924 deletions
+2
View File
@@ -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,