Skip to content

Commit

Permalink
fix(core): initialize internal core module on preview
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 23, 2024
1 parent 025b32f commit d9c8df7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Logger } from '@nestjs/common';
import { ExternalContextCreator } from '../../helpers/external-context-creator';
import { HttpAdapterHost } from '../../helpers/http-adapter-host';
import { GraphInspector } from '../../inspector/graph-inspector';
import { InitializeOnPreviewAllowlist } from '../../inspector/initialize-on-preview.allowlist';
import { SerializedGraph } from '../../inspector/serialized-graph';
import { ModuleOverride } from '../../interfaces/module-override.interface';
import { DependenciesScanner } from '../../scanner';
Expand Down Expand Up @@ -42,6 +43,8 @@ export class InternalCoreModuleFactory {
);
};

InitializeOnPreviewAllowlist.add(InternalCoreModule);

return InternalCoreModule.register([
{
provide: ExternalContextCreator,
Expand Down

0 comments on commit d9c8df7

Please sign in to comment.