mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
chore: skip app supervisor (#4937)
This commit is contained in:
parent
31997b05f5
commit
1776af73ac
@ -116,6 +116,7 @@ export interface ApplicationOptions {
|
||||
*/
|
||||
perfHooks?: boolean;
|
||||
telemetry?: AppTelemetryOptions;
|
||||
skipSupervisor?: boolean;
|
||||
}
|
||||
|
||||
export interface DefaultState extends KoaDefaultState {
|
||||
@ -235,7 +236,9 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
|
||||
this.rawOptions = this.name == 'main' ? lodash.cloneDeep(options) : {};
|
||||
this.init();
|
||||
|
||||
this._appSupervisor.addApp(this);
|
||||
if (!options.skipSupervisor) {
|
||||
this._appSupervisor.addApp(this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user